From e111f5cb7a21455df2c62eb65cd7b38aac0d834c Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 21 Feb 2017 09:55:56 +0100 Subject: luaG_concaterror, luaG_opinterror, luaG_tointerror --- src/ldo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ldo.js') diff --git a/src/ldo.js b/src/ldo.js index 04592e9..bf07c8c 100644 --- a/src/ldo.js +++ b/src/ldo.js @@ -15,7 +15,6 @@ const CT = lua.constant_types; const TS = lua.thread_status; const LUA_MULTRET = lua.LUA_MULTRET; const TValue = lobject.TValue; -const TMS = ltm.TMS; const nil = new TValue(CT.LUA_TNIL, null); @@ -189,7 +188,7 @@ const adjust_varargs = function(L, p, actual) { }; const tryfuncTM = function(L, off, func) { - let tm = ltm.luaT_gettmbyobj(L, func, TMS.TM_CALL); + let tm = ltm.luaT_gettmbyobj(L, func, ltm.TMS.TM_CALL); if (!tm.ttisfunction(tm)) throw new Error("__call metatable member is not a function"); // TODO: luaG_typeerror /* Open a hole inside the stack at 'func' */ -- cgit v1.2.3-54-g00ecf