forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): module promises + exception refactor (denoland#359)
API changes: `setPromiseRejectCallback` becomes `setUnhandledPromiseRejectionHandler`. The function is now called from `eventLoopTick`. The `promiseRejectMacrotaskCallback` no longer exists, as this is automatically handled in `eventLoopTick`. `ops.op_dispatch_exception` now takes a second parameter: `in_promise`. The preferred way to call this op is now `reportUnhandledException` or `reportUnhandledPromiseRejection`.
- Loading branch information
Showing
15 changed files
with
752 additions
and
564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.