mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 22:45:10 +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);
|
||||
}
|
||||
|
||||
async function *fn() {
|
||||
async function fn() {
|
||||
let iter = g();
|
||||
assert.sameValue(iter.next().value, 42);
|
||||
|
||||
@ -44,4 +44,4 @@ async function *fn() {
|
||||
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);
|
||||
}
|
||||
|
||||
async function *fn() {
|
||||
async function fn() {
|
||||
let iter = g();
|
||||
iter.next();
|
||||
|
||||
@ -44,4 +44,4 @@ async function *fn() {
|
||||
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