fixed accessing nil love global under plain lua in async.lua

This commit is contained in:
Max Cahill 2023-08-01 09:12:02 +10:00
parent d3a3ba9d28
commit 97bf19a787

View File

@ -29,7 +29,7 @@ function async:new()
end end
local capture_callstacks local capture_callstacks
if love.system.getOS() == 'Web' then if love and love.system.getOS() == 'Web' then
-- Do no extra wrapping under lovejs because using xpcall causes "attempt -- Do no extra wrapping under lovejs because using xpcall causes "attempt
-- to yield across metamethod/C-call boundary" -- to yield across metamethod/C-call boundary"
capture_callstacks = function(f) capture_callstacks = function(f)