diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-04 16:18:29 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-04 16:18:29 +1000 |
commit | 0bd95f16e2af2028f0a5c9b41478bca74f16cc99 (patch) | |
tree | cb6e1b156634f80417fcd6e0f965869cb61c5b25 /src/ldebug.js | |
parent | 928d79618605c35f8f6659c9683110211758fb24 (diff) | |
download | fengari-0bd95f16e2af2028f0a5c9b41478bca74f16cc99.tar.gz fengari-0bd95f16e2af2028f0a5c9b41478bca74f16cc99.tar.bz2 fengari-0bd95f16e2af2028f0a5c9b41478bca74f16cc99.zip |
Add lua_pushfstring and lua_pushvstring
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js index 3bd5cf0..9c67f26 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -576,8 +576,9 @@ const luaG_addinfo = function(L, msg, src, line) { return L.stack[L.top - 1]; }; -const luaG_runerror = function(L, msg) { +const luaG_runerror = function(L, fmt, ...argp) { let ci = L.ci; + let msg = lobject.luaO_pushvfstring(L, fmt, argp); if (ci.callstatus & lstate.CIST_LUA) /* if Lua function, add source:line information */ luaG_addinfo(L, msg, ci.func.value.p.source, currentline(ci)); luaG_errormsg(L); |