mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 21:14:45 +02:00
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:
parent
b1620ab5b8
commit
f6dd54eb19
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user