Skip to content

Commit

Permalink
fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 24, 2024
1 parent 0616d18 commit 8a14c11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extension/script/backend/worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ local ERREVENT_ERRMEM <const> = 0x04
local ERREVENT_ERRERR <const> = 0x05
local ERREVENT_PANIC <const> = 0x10

local function GlobalFunction(func, name)
local function GlobalFunction(name)
return rdebug.fieldv(rdebug._G, name)
end

Expand All @@ -718,10 +718,10 @@ local function getExceptionType(errcode, skip)
if info.what ~= 'C' then
return "runtime"
end
if rdebug.eqaul(info.func, GlobalFunction "assert") then
if rdebug.equal(info.func, GlobalFunction "assert") then
return "assert"
end
if rdebug.eqaul(info.func, GlobalFunction "error") then
if rdebug.equal(info.func, GlobalFunction "error") then
return "error"
end
end
Expand Down Expand Up @@ -751,10 +751,10 @@ local function getExceptionCaught(errcode, skip)
if level >= 100 then
return 'native'
end
if rdebug.eqaul(info.func, pcall) then
if rdebug.equal(info.func, pcall) then
return 'lua'
end
if rdebug.eqaul(info.func, xpcall) then
if rdebug.equal(info.func, xpcall) then
return 'lua'
end
level = level + 1
Expand Down

0 comments on commit 8a14c11

Please sign in to comment.