summaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-11-12 17:03:47 +1100
committerdaurnimator <quae@daurnimator.com>2017-11-12 20:33:18 +1100
commit5d649170719e0b70028ce6bafac2fdfea52c0aa0 (patch)
tree7ea7cdd1d0626bbda0ffef52ea4f5826fcebae32 /src/ldo.js
parent71902632f1de46d70ee0280fc464d05013b98b28 (diff)
downloadfengari-5d649170719e0b70028ce6bafac2fdfea52c0aa0.tar.gz
fengari-5d649170719e0b70028ce6bafac2fdfea52c0aa0.tar.bz2
fengari-5d649170719e0b70028ce6bafac2fdfea52c0aa0.zip
src/ldo.js: remove unrequired to_jsstring calls
Diffstat (limited to 'src/ldo.js')
-rw-r--r--src/ldo.js3
1 files changed, 2 insertions, 1 deletions
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);
}
};