update the async func templates to match async generator templates (error)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2017-05-22 14:18:53 -04:00
parent b1620ab5b8
commit f6dd54eb19
3 changed files with 18 additions and 3 deletions

View File

@ -43,6 +43,11 @@ async function fn() {
} }
fn() fn()
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) .then(_ => {
throw new Test262Error("Expected async function to reject, but resolved.");
}, ({ constructor }) => {
assert.sameValue(constructor, /*{ error }*/);
/*{ rejectBody }*/
})
.then($DONE, $DONE); .then($DONE, $DONE);

View File

@ -43,6 +43,11 @@ async function fn() {
} }
fn() fn()
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) .then(_ => {
throw new Test262Error("Expected async function to reject, but resolved.");
}, ({ constructor }) => {
assert.sameValue(constructor, /*{ error }*/);
/*{ rejectBody }*/
})
.then($DONE, $DONE); .then($DONE, $DONE);

View File

@ -43,5 +43,10 @@ async function fn() {
} }
fn() fn()
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) .then(_ => {
throw new Test262Error("Expected async function to reject, but resolved.");
}, ({ constructor }) => {
assert.sameValue(constructor, /*{ error }*/);
/*{ rejectBody }*/
})
.then($DONE, $DONE); .then($DONE, $DONE);