mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Fix regression caused by state assertions change
This commit is contained in:
parent
d26d7ae0e4
commit
79ba5233db
1 changed files with 1 additions and 1 deletions
|
@ -3252,7 +3252,7 @@ static const char *LuaCheckHost(lua_State *L, int idx, size_t *hostlen) {
|
|||
}
|
||||
|
||||
static void OnlyCallFromInitLua(const char *api) {
|
||||
if (!isinitialized) {
|
||||
if (isinitialized) {
|
||||
luaL_error(L, "%s() should be called from the global scope of .init.lua",
|
||||
api);
|
||||
unreachable;
|
||||
|
|
Loading…
Add table
Reference in a new issue