diff options
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js index 3ebcc7d..c44780e 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -92,7 +92,7 @@ const luaL_typename = function(L, i) { }; const luaL_argcheck = function(L, cond, arg, extramsg) { - if (!cond) throw new Error("bad argument"); // TODO: luaL_argerror + if (!cond) throw new Error(extramsg); // TODO: luaL_argerror }; const luaL_checkany = function(L, arg) { |