archives

« Bugzilla Issues Index

#4360 — B.1.3 HTML-like Comments: Extension allowed in functions within modules ?


B.1.3 HTML-like Comments
---
The syntax and semantics of 11.4 is extended as follows except that this extension is not allowed within module code:
---

Is "not allowed within module code" really correct? Or should it be "not allowed if the goal symbol is Module"?

Module code does not include nested functions per 10.2 Types of Source Code:
---
The module code of a particular module does not
include any source text that is parsed as part of a nested FunctionDeclaration, FunctionExpression, GeneratorDeclaration, GeneratorExpression, MethodDefinition, ArrowFunction, ClassDeclaration, or ClassExpression.
---

Is "<!--" within the following module code example a relational operator expression or a html comment ?
---
(p = a
<!-- b
) => {}
---


fixed in rev39 publication draft