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); |