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

Unified Diff: LayoutTests/fast/js/Promise-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
« no previous file with comments | « LayoutTests/fast/js/Promise-chain.html ('k') | LayoutTests/fast/js/Promise-fulfill.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/js/Promise-exception.html
diff --git a/LayoutTests/fast/js/Promise-exception.html b/LayoutTests/fast/js/Promise-exception.html
index 9f1707a8805244605e68595d3edbc7cedd2350f8..13409cf987b5bb6cbf6b87f42dee7bf327d39033 100644
--- a/LayoutTests/fast/js/Promise-exception.html
+++ b/LayoutTests/fast/js/Promise-exception.html
@@ -11,9 +11,9 @@ description('Test Promise.');
window.jsTestIsAsync = true;
-var firstPromise = new Promise(function(resolver) {
+var firstPromise = new Promise(function(resolve) {
window.thisInInit = this;
- resolver.fulfill('hello');
+ resolve('hello');
});
var secondPromise = firstPromise.then(function(result) {
« no previous file with comments | « LayoutTests/fast/js/Promise-chain.html ('k') | LayoutTests/fast/js/Promise-fulfill.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698