We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25e58a commit 0ca0c29Copy full SHA for 0ca0c29
lib/Runtime/Library/JavascriptGenerator.cpp
@@ -375,7 +375,7 @@ namespace Js
375
return;
376
}
377
378
- else
+ else if (frame != nullptr)
379
{
380
int nextOffset = this->frame->GetReader()->GetCurrentOffset();
381
int endOffset = this->frame->GetFunctionBody()->GetByteCode()->GetLength();
@@ -384,9 +384,9 @@ namespace Js
384
385
386
387
- SetState(GeneratorState::Completed);
388
389
+ SetState(GeneratorState::Completed);
390
ProcessAsyncGeneratorReturn(result, scriptContext);
391
392
0 commit comments