diff options
author | daurnimator <quae@daurnimator.com> | 2018-04-20 22:19:16 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-04-20 22:19:16 +1000 |
commit | 1cd5b00d25478b35deba1329d95a342062c51d4c (patch) | |
tree | d0a3c3233b2dbfc76a24638b673048eab9c0e2e1 /src/ltablib.js | |
parent | 6934a870564f8fd2d5cd7df3446e293d070c9a9e (diff) | |
download | fengari-1cd5b00d25478b35deba1329d95a342062c51d4c.tar.gz fengari-1cd5b00d25478b35deba1329d95a342062c51d4c.tar.bz2 fengari-1cd5b00d25478b35deba1329d95a342062c51d4c.zip |
src/l*lib.js: Remove some uses of caching to_luastring
Diffstat (limited to 'src/ltablib.js')
-rw-r--r-- | src/ltablib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltablib.js b/src/ltablib.js index a521720..93db0aa 100644 --- a/src/ltablib.js +++ b/src/ltablib.js @@ -211,7 +211,7 @@ const unpack = function(L) { if (i > e) return 0; /* empty range */ let n = e - i; /* number of elements minus 1 (avoid overflows) */ if (n >= Number.MAX_SAFE_INTEGER || !lua_checkstack(L, ++n)) - return luaL_error(L, to_luastring("too many results to unpack", true)); + return luaL_error(L, to_luastring("too many results to unpack")); for (; i < e; i++) /* push arg[i..e - 1] (to avoid overflows) */ lua_geti(L, 1, i); lua_geti(L, 1, e); /* push last element */ |