Test throw() called w/o arguments

This commit is contained in:
Alexey Shvayka 2020-04-29 23:08:08 +03:00 committed by Rick Waldron
parent 75a0c1bfad
commit 10a8c0420e
1 changed files with 2 additions and 2 deletions

View File

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