From 9a55c12bfa105bf3ee2f1be3d83f9fcb26785185 Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Fri, 10 Dec 2021 15:01:34 -0800 Subject: [PATCH] Add fences for GeneratorStart; suppress some built-in iterators --- spec.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec.html b/spec.html index 9d35fd66eda..8c0de64d137 100644 --- a/spec.html +++ b/spec.html @@ -34311,7 +34311,7 @@

The %StringIteratorPrototype% Object

%StringIteratorPrototype%.next ( )

- 1. Return ? GeneratorResume(*this* value, ~empty~, *"%StringIteratorPrototype%"*). + 1. Return ? GeneratorResume(*this* value, ~empty~, *"%StringIteratorPrototype%"*).
@@ -39770,7 +39770,7 @@

The %MapIteratorPrototype% Object

%MapIteratorPrototype%.next ( )

- 1. Return ? GeneratorResume(*this* value, ~empty~, *"%MapIteratorPrototype%"*). + 1. Return ? GeneratorResume(*this* value, ~empty~, *"%MapIteratorPrototype%"*).
@@ -40058,7 +40058,7 @@

The %SetIteratorPrototype% Object

%SetIteratorPrototype%.next ( )

- 1. Return ? GeneratorResume(*this* value, ~empty~, *"%SetIteratorPrototype%"*). + 1. Return ? GeneratorResume(*this* value, ~empty~, *"%SetIteratorPrototype%"*).
@@ -44493,7 +44493,7 @@

1. Assert: The value of _generator_.[[GeneratorState]] is *undefined*. 1. Let _genContext_ be the running execution context. 1. Set the Generator component of _genContext_ to _generator_. - 1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context the following steps will be performed: + 1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context the following steps will be performed: 1. If _generatorBody_ is a Parse Node, then 1. Let _result_ be the result of evaluating _generatorBody_. 1. Else, @@ -44553,7 +44553,7 @@

1. Let _methodContext_ be the running execution context. 1. Suspend _methodContext_. 1. Set _generator_.[[GeneratorState]] to ~executing~. - 1. Push _genContext_ onto the execution context stack; _genContext_ is now the running execution context. + 1. Push _genContext_ onto the execution context stack; _genContext_ is now the running execution context. 1. Resume the suspended evaluation of _genContext_ using NormalCompletion(_value_) as the result of the operation that suspended it. Let _result_ be the value returned by the resumed computation. 1. Assert: When we return here, _genContext_ has already been removed from the execution context stack and _methodContext_ is the currently running execution context. 1. Return Completion(_result_). @@ -44585,7 +44585,7 @@

1. Let _methodContext_ be the running execution context. 1. Suspend _methodContext_. 1. Set _generator_.[[GeneratorState]] to ~executing~. - 1. Push _genContext_ onto the execution context stack; _genContext_ is now the running execution context. + 1. Push _genContext_ onto the execution context stack; _genContext_ is now the running execution context. 1. Resume the suspended evaluation of _genContext_ using _abruptCompletion_ as the result of the operation that suspended it. Let _result_ be the completion record returned by the resumed computation. 1. Assert: When we return here, _genContext_ has already been removed from the execution context stack and _methodContext_ is the currently running execution context. 1. Return Completion(_result_). @@ -44841,7 +44841,7 @@

1. Assert: _generator_.[[AsyncGeneratorState]] is *undefined*. 1. Let _genContext_ be the running execution context. 1. Set the Generator component of _genContext_ to _generator_. - 1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context the following steps will be performed: + 1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context the following steps will be performed: 1. If _generatorBody_ is a Parse Node, then 1. Let _result_ be the result of evaluating _generatorBody_. 1. Else, @@ -44943,7 +44943,7 @@

1. Let _callerContext_ be the running execution context. 1. Suspend _callerContext_. 1. Set _generator_.[[AsyncGeneratorState]] to ~executing~. - 1. Push _genContext_ onto the execution context stack; _genContext_ is now the running execution context. + 1. Push _genContext_ onto the execution context stack; _genContext_ is now the running execution context. 1. Resume the suspended evaluation of _genContext_ using _completion_ as the result of the operation that suspended it. Let _result_ be the completion record returned by the resumed computation. 1. Assert: _result_ is never an abrupt completion. 1. Assert: When we return here, _genContext_ has already been removed from the execution context stack and _callerContext_ is the currently running execution context. @@ -45228,7 +45228,7 @@

1. Assert: _promiseCapability_ is a PromiseCapability Record. 1. Let _runningContext_ be the running execution context. - 1. Set the code evaluation state of _asyncContext_ such that when evaluation is resumed for that execution context the following steps will be performed: + 1. Set the code evaluation state of _asyncContext_ such that when evaluation is resumed for that execution context the following steps will be performed: 1. Let _result_ be the result of evaluating _asyncBody_. 1. Assert: If we return here, the async function either threw an exception or performed an implicit or explicit return; all awaiting is done. 1. Remove _asyncContext_ from the execution context stack and restore the execution context that is at the top of the execution context stack as the running execution context.