mirror of https://github.com/tc39/test262.git
Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
c3c8d6f099
commit
278c9ad994
|
@ -55,6 +55,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -61,6 +61,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -72,6 +72,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -55,6 +55,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -68,6 +68,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -49,6 +49,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -49,6 +49,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -55,6 +55,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -61,6 +61,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -72,6 +72,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -55,6 +55,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -68,6 +68,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -49,6 +49,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -49,6 +49,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -55,5 +55,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -62,5 +62,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -53,5 +53,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -60,5 +60,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -61,5 +61,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -72,5 +72,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -62,5 +62,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -62,5 +62,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -66,7 +66,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
iter.next();
|
||||
|
|
|
@ -55,5 +55,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -62,7 +62,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
iter.next();
|
||||
|
|
|
@ -68,5 +68,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -49,5 +49,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -49,5 +49,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -56,5 +56,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -56,5 +56,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -60,5 +60,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -55,7 +55,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
assert.sameValue(initCount, 0);
|
||||
|
|
|
@ -51,5 +51,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -53,5 +53,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -56,7 +56,7 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
assert.sameValue(initEvalCount, 0);
|
||||
|
|
|
@ -56,5 +56,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -60,5 +60,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -51,5 +51,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -51,5 +51,5 @@ async function fn() {
|
|||
}
|
||||
|
||||
fn()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
|
|
@ -55,6 +55,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -61,6 +61,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -72,6 +72,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -55,6 +55,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -68,6 +68,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -49,6 +49,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -49,6 +49,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
||||
|
|
|
@ -56,6 +56,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -60,6 +60,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ async function * gen() {
|
|||
}
|
||||
|
||||
gen().next()
|
||||
.then(_ => throw new Test262Error("Expected async function to reject, but resolved."), ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError))
|
||||
.then($DONE, $DONE);
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue