diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-03-12 16:48:53 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann@users.noreply.github.com> | 2017-03-13 11:03:24 +0100 |
commit | 2a6993bf0e23e2a3759abb9d7127525577dc346c (patch) | |
tree | 2b605f78ee91ca242770c1573d1c2138677fd66b /src/lapi.js | |
parent | 4c404c404c281f1872f0283acbaee97657f3e08b (diff) | |
download | fengari-2a6993bf0e23e2a3759abb9d7127525577dc346c.tar.gz fengari-2a6993bf0e23e2a3759abb9d7127525577dc346c.tar.bz2 fengari-2a6993bf0e23e2a3759abb9d7127525577dc346c.zip |
Testing 8-bit strings
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lapi.js b/src/lapi.js index 79cd6fb..96fe207 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -231,7 +231,6 @@ const lua_pushstring = function (L, s) { else { let ts = L.l_G.intern(lua.to_luastring(s)); L.stack[L.top] = ts; - s = ts.value; } L.top++; @@ -537,7 +536,7 @@ const lua_tolstring = function(L, idx) { if (!o.ttisstring() && !o.ttisnumber()) return null; - return o.ttisstring() ? String.fromCharCode(...o.value) : `${o.value}`; + return o.ttisstring() ? o.jsstring() : `${o.value}`; }; const lua_tostring = lua_tolstring; |