Skip to content

Commit

Permalink
Workaround cppia local function exception bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Jan 31, 2025
1 parent f4b5414 commit 2a34e6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/threads/src/cases/TestEvents.hx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ class TestEvents extends utest.Test {
var lock = new sys.thread.Lock();
Thread.create(() -> {
var thread = Thread.current();
#if !cppia
raises(
() -> thread.events.run(() -> {}),
sys.thread.NoEventLoopException
);
#end
Thread.runWithEventLoop(() -> {
thread.events.run(lock.release);
});
Expand Down

0 comments on commit 2a34e6c

Please sign in to comment.