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

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

Issue 2541283002: [promises] Port ResolvePromise to TF (Closed)
Patch Set: fix nits Created 4 years 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-species.js
diff --git a/test/mjsunit/harmony/async-await-species.js b/test/mjsunit/harmony/async-await-species.js
index bc3db83fdfa1141ede427ba27cd2f0a421abe8cf..f11923de736da538d340d79c332ca5bd8a404944 100644
--- a/test/mjsunit/harmony/async-await-species.js
+++ b/test/mjsunit/harmony/async-await-species.js
@@ -49,7 +49,7 @@ function getStack(error) {
map(line => line.replace(/^\s*at (@?[a-zA-Z0-9_\.\[\]]+)(.*)/, "$1"));
// remove `Promise.then()` invocation by assertEqualsAsync()
- if (stack[2] === "assertEqualsAsync") return [];
+ if (stack[1] === "assertEqualsAsync") return [];
return stack.reverse();
}
@@ -96,6 +96,6 @@ assertEqualsAsync(
}),
"should call Promise[@@Species] after non-internal Then");
assertEquals([
- "@@Species: [@testThenOnReturnedPromise > Promise.then > FakePromise]",
+ "@@Species: [@testThenOnReturnedPromise > FakePromise]",
"Then: foo"
], log);
« 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