From 10a8c0420e012e99064a8cfa3b9b853f4e2d5dd0 Mon Sep 17 00:00:00 2001 From: Alexey Shvayka Date: Wed, 29 Apr 2020 23:08:08 +0300 Subject: [PATCH] Test throw() called w/o arguments --- src/async-generators/yield-star-sync-throw.case | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async-generators/yield-star-sync-throw.case b/src/async-generators/yield-star-sync-throw.case index 20291d944d..350febcfd4 100644 --- a/src/async-generators/yield-star-sync-throw.case +++ b/src/async-generators/yield-star-sync-throw.case @@ -160,14 +160,14 @@ iter.next().then(v => { assert.sameValue(log.length, 6, "log.length"); - iter.throw("throw-arg-2").then(v => { + iter.throw().then(v => { assert.sameValue(log[6].name, "get throw"); assert.sameValue(log[6].thisValue.name, "syncIterator", "get throw thisValue"); assert.sameValue(log[7].name, "call throw"); assert.sameValue(log[7].thisValue.name, "syncIterator", "throw thisValue"); assert.sameValue(log[7].args.length, 1, "throw args.length"); - assert.sameValue(log[7].args[0], "throw-arg-2", "throw args[0]"); + assert.sameValue(log[7].args[0], undefined, "throw args[0]"); assert.sameValue(log[8].name, "get throw done (2)"); assert.sameValue(log[8].thisValue.name, "throw-result-2", "get throw done thisValue");