Commit Graph
1 Commits
Author SHA1 Message Date
Matus Novak de396887af fix: check for fiber error after foreign class allocation to support wrenAbortFiber
When a foreign class allocator calls wrenAbortFiber, the error flag is set on the fiber but the interpreter continues execution, causing the abort to be ignored. Add an explicit error check after createForeign() in the FOREIGN_CONSTRUCT case to trigger a runtime error and properly unwind the fiber when the allocator aborts.
2019-09-17 17:43:53 +00:00