From fc250a310c020d8fba9fea42b7595c6fc651632f Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Fri, 19 Oct 2018 12:27:51 -0400 Subject: [PATCH] fix test with unnecessary async generator --- .../dynamic-import/assign-expr/yield-assign-expr.js | 4 ++-- .../expressions/dynamic-import/assign-expr/yield-expr.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js b/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js index 2a87e84ba3..be3749f82a 100644 --- a/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js @@ -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); diff --git a/test/language/expressions/dynamic-import/assign-expr/yield-expr.js b/test/language/expressions/dynamic-import/assign-expr/yield-expr.js index 8a4bd35b2e..655b58ce99 100644 --- a/test/language/expressions/dynamic-import/assign-expr/yield-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/yield-expr.js @@ -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);