archives

« Bugzilla Issues Index

#3767 — 14.4.12 EvaluateBody: Unnecessary ReturnIfAbrupt in step 4


14.4.12 Runtime Semantics: EvaluateBody

Step 4:

ReturnIfAbrupt is not needed because GeneratorStart is infallible.


Maybe also change GeneratorStart to return NormalCompletion(undefined), and then change 14.4.12 to:

> 3. Perform GeneratorStart(G, FunctionBody).
> 4. Return Completion{[[type]]: return, [[value]]: G, [[target]]: empty}.


fixed in rev33 editor's draft


fixed in rev33