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 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) {