From 5d649170719e0b70028ce6bafac2fdfea52c0aa0 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 12 Nov 2017 17:03:47 +1100 Subject: src/ldo.js: remove unrequired to_jsstring calls --- src/ldo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ldo.js b/src/ldo.js index c471e7e..f381ca4 100644 --- a/src/ldo.js +++ b/src/ldo.js @@ -676,7 +676,8 @@ class SParser { const checkmode = function(L, mode, x) { if (mode && mode.indexOf(x[0]) === -1) { - lapi.lua_pushstring(L, defs.to_luastring(`attempt to load a ${defs.to_jsstring(x)} chunk (mode is '${defs.to_jsstring(mode)}')`)); + lobject.luaO_pushfstring(L, + defs.to_luastring("attempt to load a %s chunk (mode is '%s')"), x, mode); luaD_throw(L, TS.LUA_ERRSYNTAX); } }; -- cgit v1.2.3-54-g00ecf