fix test with unnecessary async generator

This commit is contained in:
Leo Balter 2018-10-19 12:27:51 -04:00 committed by Rick Waldron
parent 98b3cc95f7
commit fc250a310c
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);