diff options
author | daurnimator <quae@daurnimator.com> | 2017-11-12 17:03:47 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-11-12 20:33:18 +1100 |
commit | 5d649170719e0b70028ce6bafac2fdfea52c0aa0 (patch) | |
tree | 7ea7cdd1d0626bbda0ffef52ea4f5826fcebae32 /src/ldo.js | |
parent | 71902632f1de46d70ee0280fc464d05013b98b28 (diff) | |
download | fengari-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.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } }; |