diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-08 18:26:14 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-08 18:26:14 +1000 |
commit | 636b1d8a5a566fac0c9c61fed44049c659435a56 (patch) | |
tree | 99ee78a56e98f09bcb7a1255b34b5638b8c776f3 /src/llex.js | |
parent | 48d20ce3e2b38d1da536e42f225401fc06147d2a (diff) | |
download | fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.gz fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.bz2 fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.zip |
Introduce a TString class
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 e3349ce..220f45d 100644 --- a/src/llex.js +++ b/src/llex.js @@ -629,7 +629,7 @@ const llex = function(ls, seminfo) { let ts = luaX_newstring(ls, ls.buff.buffer); seminfo.ts = ts; - let kidx = luaX_tokens.slice(0, 22).indexOf(defs.to_jsstring(ts)); + let kidx = luaX_tokens.slice(0, 22).indexOf(defs.to_jsstring(ts.getstr())); if (kidx >= 0) /* reserved word? */ return kidx + FIRST_RESERVED; else |