const lua = await factory.createEngine()
lua.doStringSync(`
local co = coroutine.create(function()
local a
a = a + 1
print(a)
end)
coroutine.resume(co)
`)
await lua.doString(`
local co = coroutine.create(function()
local a
a = a + 1
print(a)
end)
coroutine.resume(co)
`)
The above code can not throw error.
Both lua_resume and lua_pcall are not returning error.
It is very strange.
The above code can not throw error. Both lua_resume and lua_pcall are not returning error. It is very strange.