aboutsummaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-22 13:54:30 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-22 13:54:30 +0100
commitb31cc0420e77d34465e4cf7d7ab75df7755b44d6 (patch)
tree6d908904fc1679549293bbe314550ec7dff82a2a /src/lauxlib.js
parent290ec54e13d1dff301465cbfa2fd7b4e1e52962f (diff)
downloadfengari-b31cc0420e77d34465e4cf7d7ab75df7755b44d6.tar.gz
fengari-b31cc0420e77d34465e4cf7d7ab75df7755b44d6.tar.bz2
fengari-b31cc0420e77d34465e4cf7d7ab75df7755b44d6.zip
assert
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index c44780e..e295fe6 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -12,9 +12,7 @@ const CT = lua.constant_types;
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);
- return 0;
+ throw new Error(`PANIC: unprotected error in call to Lua API (${lapi.lua_tostring(L, -1)})`);
};
// const luaL_argerror = function(L, arg, extramsg) {