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

Unified Diff: LayoutTests/fast/js/Promise-resolve-with-then-exception.html

Issue 23567043: Promise init callback takes resolve and reject functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
Index: LayoutTests/fast/js/Promise-resolve-with-then-exception.html
diff --git a/LayoutTests/fast/js/Promise-resolve-with-then-exception.html b/LayoutTests/fast/js/Promise-resolve-with-then-exception.html
index 4b45d495fa8e4b6ffb38aa94f532d04b6dd0f04e..92167e2808bd8339fe4496884b98aa2c1a514649 100644
--- a/LayoutTests/fast/js/Promise-resolve-with-then-exception.html
+++ b/LayoutTests/fast/js/Promise-resolve-with-then-exception.html
@@ -11,8 +11,8 @@ description('Test Promise.');
window.jsTestIsAsync = true;
var callback;
-var promise = new Promise(function(resolver) {
- resolver.resolve({then: function(fulfillCallback, rejectCallback) {
+var promise = new Promise(function(resolve) {
+ resolve({then: function(fulfillCallback, rejectCallback) {
throw 'hello';
}}, true);
});

Powered by Google App Engine
This is Rietveld 408576698