diff options
author | daurnimator <quae@daurnimator.com> | 2018-03-04 22:57:26 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-03-04 22:57:35 +1100 |
commit | 70fd14ff450a498fd2d43fdce063adc2a5df1579 (patch) | |
tree | 1474cea959c4534151e8912b41df722829892ea1 /src | |
parent | 0ab28d25ff150f3c7bebce1106b406f76d785d88 (diff) | |
download | fengari-70fd14ff450a498fd2d43fdce063adc2a5df1579.tar.gz fengari-70fd14ff450a498fd2d43fdce063adc2a5df1579.tar.bz2 fengari-70fd14ff450a498fd2d43fdce063adc2a5df1579.zip |
src/lauxlib.js: lua_tojsstring won't throw since b257a24
Diffstat (limited to 'src')
-rw-r--r-- | src/lauxlib.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js index 3dfc072..5abbaaa 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -227,11 +227,7 @@ const luaL_traceback = function(L, L1, msg, level) { }; const panic = function(L) { - let msg = "PANIC: unprotected error in call to Lua API"; - try { - msg += " (" + lua_tojsstring(L, -1) + ")"; - } catch (e) { - } + let msg = "PANIC: unprotected error in call to Lua API (" + lua_tojsstring(L, -1) + ")"; throw new Error(msg); }; |