archives

« Bugzilla Issues Index

#4503 — 15.2.3.11 Evaluation: Unnecessary ReturnIfAbrupt


15.2.3.11 Runtime Semantics: Evaluation

ExportDeclaration : export default ClassDeclaration


The ReturnIfAbrupt call in step 4.f is not required.




Also:
ExportDeclaration : export default AssignmentExpression ;

Step 6 can be simplified to:
---
Perform InitializeBoundName("*default*", value, env).
---


Fixed in ES2016 Draft.