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

Unified Diff: LayoutTests/fast/js/resources/Promise-simple-in-workers.js

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/resources/Promise-simple-in-workers.js
diff --git a/LayoutTests/fast/js/resources/Promise-simple-in-workers.js b/LayoutTests/fast/js/resources/Promise-simple-in-workers.js
index 44d9a4950071b6ad73750e38a735eaa4cf71db82..fb204549e6527611349d2ff13b480db75f8da92d 100644
--- a/LayoutTests/fast/js/resources/Promise-simple-in-workers.js
+++ b/LayoutTests/fast/js/resources/Promise-simple-in-workers.js
@@ -6,11 +6,11 @@ var global = this;
global.jsTestIsAsync = true;
-var resolver;
+var resolve;
-var firstPromise = new Promise(function(newResolver) {
+var firstPromise = new Promise(function(newResolve) {
global.thisInInit = this;
- resolver = newResolver;
+ resolve = newResolve;
});
var secondPromise = firstPromise.then(function(result) {
@@ -23,4 +23,4 @@ var secondPromise = firstPromise.then(function(result) {
shouldBeTrue('thisInInit === firstPromise');
-resolver.fulfill('hello');
+resolve('hello');

Powered by Google App Engine
This is Rietveld 408576698