Skip to content
Snippets Groups Projects
Commit 471bde91 authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

Add descriptions for async-iter suspended execution tests (#894)

Fixes #889
parent 4108569d
No related branches found
No related tags found
No related merge requests found
Showing
with 45 additions and 0 deletions
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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.
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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.
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,10 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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.
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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.
......
......@@ -5,6 +5,8 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,10 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,9 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
......@@ -5,6 +5,8 @@
author: Caitlin Potter <caitp@igalia.com>
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment