Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1119)

Unified Diff: src/js/promise.js

Issue 2278643002: Do not trigger ExceptionEvents for another forwarding case (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/promise.js
diff --git a/src/js/promise.js b/src/js/promise.js
index 9e4179ae30d7013bbbc16a58cca7acb2dc0c2584..c86cee5d4a0a4edaf078ff07802c90debf65f124 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -216,8 +216,8 @@ function PromiseAttachCallbacks(promise, deferred, onResolve, onReject) {
}
}
-function PromiseIdResolveHandler(x) { return x }
-function PromiseIdRejectHandler(r) { throw r }
+function PromiseIdResolveHandler(x) { return x; }
+function PromiseIdRejectHandler(r) { %_ReThrow(r); }
function PromiseNopResolver() {}
« no previous file with comments | « no previous file | test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698