mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
fix test with unnecessary async generator
This commit is contained in:
parent
98b3cc95f7
commit
fc250a310c
@ -26,7 +26,7 @@ function *g() {
|
|||||||
return import(yield 42);
|
return import(yield 42);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function *fn() {
|
async function fn() {
|
||||||
let iter = g();
|
let iter = g();
|
||||||
assert.sameValue(iter.next().value, 42);
|
assert.sameValue(iter.next().value, 42);
|
||||||
|
|
||||||
@ -44,4 +44,4 @@ async function *fn() {
|
|||||||
assert.sameValue(ns2.default, 1612);
|
assert.sameValue(ns2.default, 1612);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn().next(a).then($DONE, $DONE).catch($DONE);
|
fn().then($DONE, $DONE).catch($DONE);
|
||||||
|
@ -26,7 +26,7 @@ function *g() {
|
|||||||
return import(yield);
|
return import(yield);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function *fn() {
|
async function fn() {
|
||||||
let iter = g();
|
let iter = g();
|
||||||
iter.next();
|
iter.next();
|
||||||
|
|
||||||
@ -44,4 +44,4 @@ async function *fn() {
|
|||||||
assert.sameValue(ns2.default, 1612);
|
assert.sameValue(ns2.default, 1612);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn().next(a).then($DONE, $DONE).catch($DONE);
|
fn().then($DONE, $DONE).catch($DONE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user