From 0881a6a2ad2883329d64c1c01ca294a7dcc57af7 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Thu, 28 Sep 2017 14:40:53 -0400 Subject: [PATCH] Generate tests --- .../named-yield-star-async-next.js | 39 +++++++++---------- .../async-generator/yield-star-async-next.js | 39 +++++++++---------- ...gen-method-static-yield-star-async-next.js | 39 +++++++++---------- .../async-gen-method-yield-star-async-next.js | 39 +++++++++---------- .../async-gen-yield-star-async-next.js | 39 +++++++++---------- .../async-generator/yield-star-async-next.js | 39 +++++++++---------- ...gen-method-static-yield-star-async-next.js | 39 +++++++++---------- .../async-gen-method-yield-star-async-next.js | 39 +++++++++---------- 8 files changed, 144 insertions(+), 168 deletions(-) diff --git a/test/language/expressions/async-generator/named-yield-star-async-next.js b/test/language/expressions/async-generator/named-yield-star-async-next.js index 98d68bd567f..88d428d9142 100644 --- a/test/language/expressions/async-generator/named-yield-star-async-next.js +++ b/test/language/expressions/async-generator/named-yield-star-async-next.js @@ -185,36 +185,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE); diff --git a/test/language/expressions/async-generator/yield-star-async-next.js b/test/language/expressions/async-generator/yield-star-async-next.js index d76fe4e72b3..adcb0cd75ad 100644 --- a/test/language/expressions/async-generator/yield-star-async-next.js +++ b/test/language/expressions/async-generator/yield-star-async-next.js @@ -185,36 +185,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE); diff --git a/test/language/expressions/class/async-gen-method-static-yield-star-async-next.js b/test/language/expressions/class/async-gen-method-static-yield-star-async-next.js index 338563525db..9029f8dfac3 100644 --- a/test/language/expressions/class/async-gen-method-static-yield-star-async-next.js +++ b/test/language/expressions/class/async-gen-method-static-yield-star-async-next.js @@ -192,36 +192,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE); diff --git a/test/language/expressions/class/async-gen-method-yield-star-async-next.js b/test/language/expressions/class/async-gen-method-yield-star-async-next.js index 70809ad6d8c..18c1ff09e39 100644 --- a/test/language/expressions/class/async-gen-method-yield-star-async-next.js +++ b/test/language/expressions/class/async-gen-method-yield-star-async-next.js @@ -192,36 +192,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE); diff --git a/test/language/expressions/object/method-definition/async-gen-yield-star-async-next.js b/test/language/expressions/object/method-definition/async-gen-yield-star-async-next.js index a57ef3b63dc..0294e2998f7 100644 --- a/test/language/expressions/object/method-definition/async-gen-yield-star-async-next.js +++ b/test/language/expressions/object/method-definition/async-gen-yield-star-async-next.js @@ -185,36 +185,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE); diff --git a/test/language/statements/async-generator/yield-star-async-next.js b/test/language/statements/async-generator/yield-star-async-next.js index 074a29c18f1..e7fcee9652e 100644 --- a/test/language/statements/async-generator/yield-star-async-next.js +++ b/test/language/statements/async-generator/yield-star-async-next.js @@ -185,36 +185,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE); diff --git a/test/language/statements/class/async-gen-method-static-yield-star-async-next.js b/test/language/statements/class/async-gen-method-static-yield-star-async-next.js index 452b5b5dcaa..25ae554c2a0 100644 --- a/test/language/statements/class/async-gen-method-static-yield-star-async-next.js +++ b/test/language/statements/class/async-gen-method-static-yield-star-async-next.js @@ -192,36 +192,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE); diff --git a/test/language/statements/class/async-gen-method-yield-star-async-next.js b/test/language/statements/class/async-gen-method-yield-star-async-next.js index 14f61ca4230..f107afd4e40 100644 --- a/test/language/statements/class/async-gen-method-yield-star-async-next.js +++ b/test/language/statements/class/async-gen-method-yield-star-async-next.js @@ -192,36 +192,33 @@ iter.next("next-arg-1").then(v => { assert.sameValue(log.length, 9, "log.length"); iter.next("next-arg-2").then(v => { - assert.sameValue(log[9].name, "get next"); - assert.sameValue(log[9].thisValue.name, "asyncIterator", "get next thisValue"); + assert.sameValue(log[9].name, "call next"); + assert.sameValue(log[9].thisValue.name, "asyncIterator", "next thisValue"); + assert.sameValue(log[9].args.length, 1, "next args.length"); + assert.sameValue(log[9].args[0], "next-arg-2", "next args[0]"); - assert.sameValue(log[10].name, "call next"); - assert.sameValue(log[10].thisValue.name, "asyncIterator", "next thisValue"); - assert.sameValue(log[10].args.length, 1, "next args.length"); - assert.sameValue(log[10].args[0], "next-arg-2", "next args[0]"); + assert.sameValue(log[10].name, "get next then (2)"); + assert.sameValue(log[10].thisValue.name, "next-promise-2", "get next then thisValue"); - assert.sameValue(log[11].name, "get next then (2)"); - assert.sameValue(log[11].thisValue.name, "next-promise-2", "get next then thisValue"); + assert.sameValue(log[11].name, "call next then (2)"); + assert.sameValue(log[11].thisValue.name, "next-promise-2", "next then thisValue"); + assert.sameValue(log[11].args.length, 2, "next then args.length"); + assert.sameValue(typeof log[11].args[0], "function", "next then args[0]"); + assert.sameValue(typeof log[11].args[1], "function", "next then args[1]"); - assert.sameValue(log[12].name, "call next then (2)"); - assert.sameValue(log[12].thisValue.name, "next-promise-2", "next then thisValue"); - assert.sameValue(log[12].args.length, 2, "next then args.length"); - assert.sameValue(typeof log[12].args[0], "function", "next then args[0]"); - assert.sameValue(typeof log[12].args[1], "function", "next then args[1]"); + assert.sameValue(log[12].name, "get next done (2)"); + assert.sameValue(log[12].thisValue.name, "next-result-2", "get next done thisValue"); - assert.sameValue(log[13].name, "get next done (2)"); - assert.sameValue(log[13].thisValue.name, "next-result-2", "get next done thisValue"); + assert.sameValue(log[13].name, "get next value (2)"); + assert.sameValue(log[13].thisValue.name, "next-result-2", "get next value thisValue"); - assert.sameValue(log[14].name, "get next value (2)"); - assert.sameValue(log[14].thisValue.name, "next-result-2", "get next value thisValue"); - - assert.sameValue(log[15].name, "after yield*"); - assert.sameValue(log[15].value, "next-value-2"); + assert.sameValue(log[14].name, "after yield*"); + assert.sameValue(log[14].value, "next-value-2"); assert.sameValue(v.value, "return-value"); assert.sameValue(v.done, true); - assert.sameValue(log.length, 16, "log.length"); + assert.sameValue(log.length, 15, "log.length"); }).then($DONE, $DONE); }).catch($DONE);