fixed crash running in a thread in love without explicitly requiring love.system (unlikely as you rarely need it)

This commit is contained in:
Max Cahill 2023-11-09 16:55:08 +11:00
parent f091c89893
commit 6fa0b31455

View File

@ -30,7 +30,7 @@ function async:new()
end
local capture_callstacks
if love and love.system.getOS() == 'Web' then
if love and love.system and love.system.getOS() == 'Web' then
--do no extra wrapping under lovejs because using xpcall
-- causes a yield across a c call boundary
capture_callstacks = function(f)