summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index b879446..3ebcc7d 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -14,7 +14,7 @@ const LUA_LOADED_TABLE = "_LOADED"
const panic = function(L) {
let msg = `PANIC: unprotected error in call to Lua API (${lapi.lua_tostring(L, -1)})`;
console.error(msg);
- throw new Error(msg);
+ return 0;
};
// const luaL_argerror = function(L, arg, extramsg) {