aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-27 09:35:34 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-27 09:35:34 +0200
commita624b6d9c9ba44131ad91171dfa703d09777ace5 (patch)
treec8ee3b941ced0fbf7552bfa752b75b7506c42c68
parentfc47606d8733d2a3f4e9d5eab970efd58e458836 (diff)
downloadfengari-a624b6d9c9ba44131ad91171dfa703d09777ace5.tar.gz
fengari-a624b6d9c9ba44131ad91171dfa703d09777ace5.tar.bz2
fengari-a624b6d9c9ba44131ad91171dfa703d09777ace5.zip
luaS_newliteral takes a js string
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 4abe0c2..9b40b36 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) {
- L.stack[L.top++] = new TValue(CT.LUA_TLNGSTR, lstring.luaS_newliteral(L, []));
+ L.stack[L.top++] = new TValue(CT.LUA_TLNGSTR, lstring.luaS_newliteral(L, ""));
assert(L.top <= L.ci.top, "stack overflow");
}
};