From 1cd5b00d25478b35deba1329d95a342062c51d4c Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 20 Apr 2018 22:19:16 +1000 Subject: src/l*lib.js: Remove some uses of caching to_luastring --- src/ltablib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ltablib.js') 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 */ -- cgit v1.2.3-70-g09d2