Skip to content
Snippets Groups Projects
Commit f6dd54eb authored by Rick Waldron's avatar Rick Waldron
Browse files

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

parent b1620ab5
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,11 @@ async function 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);
......@@ -43,6 +43,11 @@ async function 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);
......@@ -43,5 +43,10 @@ async function 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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment