From 471bde916274204b7d97d8080cf1c8a7e38cf0e9 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Mon, 13 Mar 2017 09:59:42 -0400 Subject: [PATCH] Add descriptions for async-iter suspended execution tests (#894) Fixes #889 --- .../async-generators/return-suspendedStart-promise.js | 3 +++ .../expressions/async-generators/return-suspendedStart.js | 3 +++ .../async-generators/return-suspendedYield-promise.js | 3 +++ .../return-suspendedYield-try-finally-return.js | 3 +++ .../return-suspendedYield-try-finally-throw.js | 4 ++++ .../async-generators/return-suspendedYield-try-finally.js | 3 +++ .../expressions/async-generators/return-suspendedYield.js | 3 +++ .../async-generators/throw-suspendedStart-promise.js | 3 +++ .../expressions/async-generators/throw-suspendedStart.js | 3 +++ .../async-generators/throw-suspendedYield-promise.js | 2 ++ .../async-generators/throw-suspendedYield-try-catch.js | 3 +++ .../throw-suspendedYield-try-finally-return.js | 3 +++ .../throw-suspendedYield-try-finally-throw.js | 4 ++++ .../async-generators/throw-suspendedYield-try-finally.js | 3 +++ .../expressions/async-generators/throw-suspendedYield.js | 2 ++ 15 files changed, 45 insertions(+) diff --git a/test/language/expressions/async-generators/return-suspendedStart-promise.js b/test/language/expressions/async-generators/return-suspendedStart-promise.js index a73fdeb667..f4a8b9229f 100644 --- a/test/language/expressions/async-generators/return-suspendedStart-promise.js +++ b/test/language/expressions/async-generators/return-suspendedStart-promise.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Generator is not resumed after a return type completion. + Returning promise before start +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is "suspendedStart", generator is closed without being resumed. diff --git a/test/language/expressions/async-generators/return-suspendedStart.js b/test/language/expressions/async-generators/return-suspendedStart.js index 22245f9ccc..d1ce68b22a 100644 --- a/test/language/expressions/async-generators/return-suspendedStart.js +++ b/test/language/expressions/async-generators/return-suspendedStart.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Generator is not resumed after a return type completion. + Returning non-promise before start +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is "suspendedStart", generator is closed without being resumed. diff --git a/test/language/expressions/async-generators/return-suspendedYield-promise.js b/test/language/expressions/async-generators/return-suspendedYield-promise.js index 65a2859edd..105643f2b7 100644 --- a/test/language/expressions/async-generators/return-suspendedYield-promise.js +++ b/test/language/expressions/async-generators/return-suspendedYield-promise.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Generator is not resumed after a return type completion. + Returning promise +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is "suspendedYield", generator is resumed and immediately closes the generator diff --git a/test/language/expressions/async-generators/return-suspendedYield-try-finally-return.js b/test/language/expressions/async-generators/return-suspendedYield-try-finally-return.js index 398b415a72..2a2c899e28 100644 --- a/test/language/expressions/async-generators/return-suspendedYield-try-finally-return.js +++ b/test/language/expressions/async-generators/return-suspendedYield-try-finally-return.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Returned generator suspended in a yield position resumes execution within + an associated finally +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is "suspendedYield", and generator is resumed within a try-block with an diff --git a/test/language/expressions/async-generators/return-suspendedYield-try-finally-throw.js b/test/language/expressions/async-generators/return-suspendedYield-try-finally-throw.js index 7eba74787f..208b2e4d5e 100644 --- a/test/language/expressions/async-generators/return-suspendedYield-try-finally-throw.js +++ b/test/language/expressions/async-generators/return-suspendedYield-try-finally-throw.js @@ -5,6 +5,10 @@ author: Caitlin Potter esid: pending description: > + Returned generator suspended in a yield position resumes execution + within an associated finally, capturing a new abrupt completion and + does not resume again within that finally block. +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is "suspendedYield", and generator is resumed within a try-block with an diff --git a/test/language/expressions/async-generators/return-suspendedYield-try-finally.js b/test/language/expressions/async-generators/return-suspendedYield-try-finally.js index ca95a907d6..022fbb9fa8 100644 --- a/test/language/expressions/async-generators/return-suspendedYield-try-finally.js +++ b/test/language/expressions/async-generators/return-suspendedYield-try-finally.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Returned generator suspended in a yield position resumes execution within + an associated finally. +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is "suspendedYield", and generator is resumed within a try-block with an diff --git a/test/language/expressions/async-generators/return-suspendedYield.js b/test/language/expressions/async-generators/return-suspendedYield.js index 8f65eaaad9..221dafd0d5 100644 --- a/test/language/expressions/async-generators/return-suspendedYield.js +++ b/test/language/expressions/async-generators/return-suspendedYield.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Returned generator suspended in a yield position does not resume execution + without an associated finally. +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is "suspendedYield", generator is resumed and immediately closes the generator diff --git a/test/language/expressions/async-generators/throw-suspendedStart-promise.js b/test/language/expressions/async-generators/throw-suspendedStart-promise.js index 4564566f98..f49db64f72 100644 --- a/test/language/expressions/async-generators/throw-suspendedStart-promise.js +++ b/test/language/expressions/async-generators/throw-suspendedStart-promise.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Generator is not resumed after a throw completion with a promise arg before + start +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedStart", generator is closed without being resumed. diff --git a/test/language/expressions/async-generators/throw-suspendedStart.js b/test/language/expressions/async-generators/throw-suspendedStart.js index ee21cc4ef1..534dde8fc5 100644 --- a/test/language/expressions/async-generators/throw-suspendedStart.js +++ b/test/language/expressions/async-generators/throw-suspendedStart.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Generator is not resumed after a throw completion with a non-promise arg + before start +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedStart", generator is closed without being resumed. diff --git a/test/language/expressions/async-generators/throw-suspendedYield-promise.js b/test/language/expressions/async-generators/throw-suspendedYield-promise.js index 0165d4b75e..db701ef8cd 100644 --- a/test/language/expressions/async-generators/throw-suspendedYield-promise.js +++ b/test/language/expressions/async-generators/throw-suspendedYield-promise.js @@ -5,6 +5,8 @@ author: Caitlin Potter esid: pending description: > + Generator is not resumed after a throw completion with a promise arg +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedYield", generator is resumed and immediately and diff --git a/test/language/expressions/async-generators/throw-suspendedYield-try-catch.js b/test/language/expressions/async-generators/throw-suspendedYield-try-catch.js index eb163a764e..0b60090c34 100644 --- a/test/language/expressions/async-generators/throw-suspendedYield-try-catch.js +++ b/test/language/expressions/async-generators/throw-suspendedYield-try-catch.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Thrown generator suspended in a yield position resumes execution within + the associated catch-block +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedYield", and generator is resumed within a try-block with an diff --git a/test/language/expressions/async-generators/throw-suspendedYield-try-finally-return.js b/test/language/expressions/async-generators/throw-suspendedYield-try-finally-return.js index 96ff02d250..96adedabe5 100644 --- a/test/language/expressions/async-generators/throw-suspendedYield-try-finally-return.js +++ b/test/language/expressions/async-generators/throw-suspendedYield-try-finally-return.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Thrown generator suspended in a yield position resumes execution within + the associated finally block, returns and suspends execution again. +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedYield", and generator is resumed within a try-block with an diff --git a/test/language/expressions/async-generators/throw-suspendedYield-try-finally-throw.js b/test/language/expressions/async-generators/throw-suspendedYield-try-finally-throw.js index 7376099d51..6c404ea04f 100644 --- a/test/language/expressions/async-generators/throw-suspendedYield-try-finally-throw.js +++ b/test/language/expressions/async-generators/throw-suspendedYield-try-finally-throw.js @@ -5,6 +5,10 @@ author: Caitlin Potter esid: pending description: > + Thrown generator suspended in a yield position resumes execution within + the associated finally block and throws an error and suspendeds execution + again +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedYield", and generator is resumed within a try-block with an diff --git a/test/language/expressions/async-generators/throw-suspendedYield-try-finally.js b/test/language/expressions/async-generators/throw-suspendedYield-try-finally.js index 7e029ef867..e348f840ee 100644 --- a/test/language/expressions/async-generators/throw-suspendedYield-try-finally.js +++ b/test/language/expressions/async-generators/throw-suspendedYield-try-finally.js @@ -5,6 +5,9 @@ author: Caitlin Potter esid: pending description: > + Thrown generator suspended in a yield position resumes execution within + the associated finally block. +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedYield", and generator is resumed within a try-block with an diff --git a/test/language/expressions/async-generators/throw-suspendedYield.js b/test/language/expressions/async-generators/throw-suspendedYield.js index 6cf6725b6e..689eed73be 100644 --- a/test/language/expressions/async-generators/throw-suspendedYield.js +++ b/test/language/expressions/async-generators/throw-suspendedYield.js @@ -5,6 +5,8 @@ author: Caitlin Potter esid: pending description: > + Generator is not resumed after a throw completion with an error object +info: | AsyncGeneratorResumeNext: If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is "suspendedYield", generator is resumed and immediately and