In GeneratorStart and AsyncGeneratorStart, the provided generatorBody parameter can be an Abstract Closure in which case the LexicalEnvironment of the running Execution Context may not be set.
We should either:
Not call DisposeResources when the LexicalEnvironment is not defined (which should only be for Abstract Closures), or
Move the DisposeResources call to the Evaluation for FunctionBody, as suggested in this comment.
In GeneratorStart and AsyncGeneratorStart, the provided
generatorBody
parameter can be an Abstract Closure in which case theLexicalEnvironment
of the running Execution Context may not be set.We should either:
LexicalEnvironment
is not defined (which should only be for Abstract Closures), orFunctionBody
, as suggested in this comment.