Opened 8 years ago
Last modified 5 years ago
#17485 new defect
Comment // at end of file causes error 307 in build
Reported by: | NJM-Goals | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.15 |
Component: | BuildSystem | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
A comment at the end of a file causes error 307. error(307) Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions). module: xxx/yyy; error: SyntaxError?: missing } after function body
It doesn't matter if the comment is directly behind the semicolon of a define call or in a separate line. A comment with /* */ does not cause this error. A new line behind the last prevents this error. The text " any comment" (without quotation marks) also causes this error.
Reproduceable with Dojo Boilerplate (https://github.com/csnover/dojo-boilerplate) with a at the end of Dialog.js (attached)
Attachments (1)
Change History (5)
Changed 8 years ago by
comment:1 Changed 8 years ago by
Corrected Description:
It doesn't matter if the comment is directly behind the semicolon of a define call or in a separate line. A comment with /* */ does not cause this error. A new line behind the last // prevents this error. The text "// any comment" (without quotation marks) also causes this error.
Reproduceable with Dojo Boilerplate (https://github.com/csnover/dojo-boilerplate) with a // at the end of Dialog.js (attached)
comment:3 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|
comment:4 Changed 5 years ago by
Milestone: | 1.13 → 1.15 |
---|
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.
Dialog.js from Dojo Boilerplate with a comment at the end that causes the Build System to print error 307