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

Unified Diff: test/mjsunit/harmony/async-await-resolve-new.js

Issue 2219623002: [promise] Spec compliance fixes for async/await (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test for rejection 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
« src/js/promise.js ('K') | « test/mjsunit/harmony/async-await-no-constructor.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/async-await-resolve-new.js
diff --git a/test/mjsunit/harmony/regress/regress-624300.js b/test/mjsunit/harmony/async-await-resolve-new.js
similarity index 68%
copy from test/mjsunit/harmony/regress/regress-624300.js
copy to test/mjsunit/harmony/async-await-resolve-new.js
index f96fbbb5aaa1a22d4603e0c103372d1333af8f1a..0711c95873e95b9d32d5418b47d5fdda4dec4d64 100644
--- a/test/mjsunit/harmony/regress/regress-624300.js
+++ b/test/mjsunit/harmony/async-await-resolve-new.js
@@ -4,10 +4,6 @@
// Flags: --harmony-async-await
-(function f() {
- try {
- f();
- } catch (e) {
- (async() => await 1).length;
- }
-})();
+var resolved = Promise.resolve();
+
+assertTrue((async() => resolved)() !== resolved);
« src/js/promise.js ('K') | « test/mjsunit/harmony/async-await-no-constructor.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698