diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-08 15:41:19 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-08 16:07:38 +1000 |
commit | e67fb5f4cb51fbf4061ab647ef08ef4893b7f0e4 (patch) | |
tree | f42bc3854fe31ec86324dd55725d1d3ff963cf2e /src/llex.js | |
parent | 41ad8917ca15b275c8aca20f6e3907a08ae7ad15 (diff) | |
download | fengari-e67fb5f4cb51fbf4061ab647ef08ef4893b7f0e4.tar.gz fengari-e67fb5f4cb51fbf4061ab647ef08ef4893b7f0e4.tar.bz2 fengari-e67fb5f4cb51fbf4061ab647ef08ef4893b7f0e4.zip |
Add accessors to TValue for TString values
Diffstat (limited to 'src/llex.js')
-rw-r--r-- | src/llex.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llex.js b/src/llex.js index f2fbd02..e3349ce 100644 --- a/src/llex.js +++ b/src/llex.js @@ -210,7 +210,7 @@ const luaX_newstring = function(ls, str) { /* HACK: Workaround lack of ltable 'keyfromval' */ let tpair = ls.h.strong.get(lstring.luaS_hash(ts)); assert(tpair.value == o); - ts = tpair.key.value; /* re-use value previously stored */ + ts = tpair.key.tsvalue(); /* re-use value previously stored */ } return ts; }; |