Using coroutines with a "call" debug hook set produces a NullPointerException
incinirate opened this issue ยท 0 comments
The following code produces a vm error: java.lang.NullPointerException
on the coroutine.create
:
local function abc()
print("ABC!")
end
local function testHook(a)
print("Hello from " .. a)
end
debug.sethook(testHook, "c")
local s, e = pcall(function()
coroutine.create(abc)
end)
debug.sethook()
if not s then
print(e)
end