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

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

Issue 2596553002: [promises] Move Promise.prototype.catch 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
« no previous file with comments | « src/js/promise.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 f11923de736da538d340d79c332ca5bd8a404944..bc3db83fdfa1141ede427ba27cd2f0a421abe8cf 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[1] === "assertEqualsAsync") return [];
+ if (stack[2] === "assertEqualsAsync") return [];
return stack.reverse();
}
@@ -96,6 +96,6 @@ assertEqualsAsync(
}),
"should call Promise[@@Species] after non-internal Then");
assertEquals([
- "@@Species: [@testThenOnReturnedPromise > FakePromise]",
+ "@@Species: [@testThenOnReturnedPromise > Promise.then > FakePromise]",
"Then: foo"
], log);
« no previous file with comments | « src/js/promise.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698