summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-23 18:03:35 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-27 22:14:43 +1000
commit4034ef458697729d1a8a25058b43272ae5882ce2 (patch)
tree7324c1cb7024506076572aaddca563d4fe3be6f4 /src/lapi.js
parenta8972da5384812ab71157ced89c6b5df6da14132 (diff)
downloadfengari-4034ef458697729d1a8a25058b43272ae5882ce2.tar.gz
fengari-4034ef458697729d1a8a25058b43272ae5882ce2.tar.bz2
fengari-4034ef458697729d1a8a25058b43272ae5882ce2.zip
src/lapi.js: Fix incorrect argument to luaS_newliteral in lua_concat
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index e9994f5..a1dc542 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -1046,7 +1046,7 @@ const lua_concat = function(L, n) {
if (n >= 2)
lvm.luaV_concat(L, n);
else if (n === 0) {
- lobject.setsvalue2s(L, L.top, lstring.luaS_newliteral(L, []));
+ lobject.setsvalue2s(L, L.top, lstring.luaS_bless(L, []));
L.top++;
assert(L.top <= L.ci.top, "stack overflow");
}