diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-23 18:02:28 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-27 22:14:38 +1000 |
commit | 78f764030414e5c45ea059a5f582885da0282e39 (patch) | |
tree | a82fa0e267d91a8e7cb3a5df5444dc276945ddca /src/lvm.js | |
parent | 941e38fe2360fc0b4fa6f4ef5c9a9a43c172d528 (diff) | |
download | fengari-78f764030414e5c45ea059a5f582885da0282e39.tar.gz fengari-78f764030414e5c45ea059a5f582885da0282e39.tar.bz2 fengari-78f764030414e5c45ea059a5f582885da0282e39.zip |
Introduce setsvalue2s
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -967,7 +967,7 @@ const tostring = function(L, i) { if (o.ttisstring()) return true; if (cvt2str(o)) { - L.stack[i] = lobject.luaO_tostring(L, o); + lobject.setsvalue2s(L, i, lobject.luaO_tostring(L, o)); return true; } @@ -1011,7 +1011,7 @@ const luaV_concat = function(L, total) { delete L.stack[top - n - 1]; } let ts = lstring.luaS_bless(L, Array.prototype.concat.apply([], toconcat)); - L.stack[top - n] = new lobject.TValue(CT.LUA_TLNGSTR, ts); + lobject.setsvalue2s(L, top - n, ts); } total -= n - 1; /* got 'n' strings to create 1 new */ L.top -= n - 1; /* popped 'n' strings and pushed one */ |