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/lbaselib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lbaselib.js') 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); }; -- cgit v1.2.3-54-g00ecf