diff options
Diffstat (limited to 'src/lauxlib.js')
-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); }; |