From 992285ba12d217a3def72e49a29fba70e4e48f2f Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 17:26:00 +1000 Subject: Remove lua.thread_status --- src/lauxlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lauxlib.js') diff --git a/src/lauxlib.js b/src/lauxlib.js index 1ee8900..f2cf220 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -514,7 +514,7 @@ if (typeof require === "function") { let filename = lapi.lua_tostring(L, fnameindex).slice(1); lapi.lua_pushstring(L, lua.to_luastring(`cannot ${what} ${lobject.jsstring(filename)}: ${serr}`)); lapi.lua_remove(L, fnameindex); - return lua.thread_status.LUA_ERRFILE; + return lua.LUA_ERRFILE; }; const getc = function(lf) { -- cgit v1.2.3-54-g00ecf