aboutsummaryrefslogtreecommitdiff
path: root/src/lbaselib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-20 22:19:16 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-20 22:19:16 +1000
commit1cd5b00d25478b35deba1329d95a342062c51d4c (patch)
treed0a3c3233b2dbfc76a24638b673048eab9c0e2e1 /src/lbaselib.js
parent6934a870564f8fd2d5cd7df3446e293d070c9a9e (diff)
downloadfengari-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/lbaselib.js')
-rw-r--r--src/lbaselib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lbaselib.js b/src/lbaselib.js
index b589d6f..63754ef 100644
--- a/src/lbaselib.js
+++ b/src/lbaselib.js
@@ -411,14 +411,14 @@ const RESERVEDSLOT = 5;
** reserved slot inside the stack.
*/
const generic_reader = function(L, ud) {
- luaL_checkstack(L, 2, to_luastring("too many nested functions", true));
+ luaL_checkstack(L, 2, "too many nested functions");
lua_pushvalue(L, 1); /* get function */
lua_call(L, 0, 1); /* call it */
if (lua_isnil(L, -1)) {
lua_pop(L, 1); /* pop result */
return null;
} else if (!lua_isstring(L, -1))
- luaL_error(L, to_luastring("reader function must return a string", true));
+ luaL_error(L, to_luastring("reader function must return a string"));
lua_replace(L, RESERVEDSLOT); /* save string in reserved slot */
return lua_tostring(L, RESERVEDSLOT);
};