Skip to content

Commit 935c5d9

Browse files
Merge pull request #339 from swiftwasm/yt/export-yield-error-type
Export `UnsafeEventLoopYield` error type
2 parents 8a1007e + c3ec456 commit 935c5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Runtime/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,4 +749,4 @@ export class SwiftRuntime {
749749
/// This error is thrown to unwind the call stack of the Swift program and return the control to
750750
/// the JavaScript side. Otherwise, the `swift_task_asyncMainDrainQueue` ends up with `abort()`
751751
/// because the event loop expects `exit()` call before the end of the event loop.
752-
class UnsafeEventLoopYield extends Error {}
752+
export class UnsafeEventLoopYield extends Error {}

0 commit comments

Comments
 (0)