mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-25 23:24:35 +00:00
fixed accessing nil love global under plain lua in async.lua
This commit is contained in:
parent
d3a3ba9d28
commit
97bf19a787
@ -29,7 +29,7 @@ function async:new()
|
||||
end
|
||||
|
||||
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
|
||||
-- to yield across metamethod/C-call boundary"
|
||||
capture_callstacks = function(f)
|
||||
|
Loading…
Reference in New Issue
Block a user