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

Unified Diff: LayoutTests/fast/js/Promise-resolve-with-then-fulfill.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-fulfill.html
diff --git a/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html b/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html
index 8480fbd3b1e51aa0c5b51a0d03f40ada75824cbc..8e4a002b4daf8ca02d1bb62f5047bb5969cb8d67 100644
--- a/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html
+++ b/LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html
@@ -20,7 +20,7 @@ var value = {
}
};
finishJSTest();
-var promise = new Promise(function(r) { r.resolve(value); });
+var promise = new Promise(function(resolve) { resolve(value); });
promise.then(function(result) {
testPassed('fulfilled');

Powered by Google App Engine
This is Rietveld 408576698