Skip to content

Commit 4c92217

Browse files
parse-state: do not throw error when browser moves in quick succession
1 parent 9972e5b commit 4c92217

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

modules/apis/parse-state.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ local parse_state_API = {}
1616
function parse_state_API:yield(...)
1717
local co = coroutine.running()
1818
local is_browser = co == g.state.co
19-
if self.source == "browser" and not is_browser then
20-
msg.error("current coroutine does not match browser's expected coroutine - did you unsafely yield before this?")
21-
error("current coroutine does not match browser's expected coroutine - aborting the parse")
22-
end
2319

2420
local result = table.pack(coroutine.yield(...))
2521
if is_browser and co ~= g.state.co then

0 commit comments

Comments
 (0)