Add ending semicolon to improve compatibility #1

Closed
opened 2022-12-02 04:31:13 +00:00 by SeaHOH · 2 comments
SeaHOH commented 2022-12-02 04:31:13 +00:00 (Migrated from github.com)
https://github.com/martok/js-darktree/blob/ad15e611e89c4002ac655f05f86d25a5744f29b1/src/darktree.js#L1071
martok commented 2022-12-02 12:01:41 +00:00 (Migrated from github.com)

Compatibility with what? Pale Moon accepts it so Spidermonkey is OK, Terser accepts it so V8 is OK.

That's EOF, not even a linebreak where semicolon insertion could go wrong?

Compatibility with what? Pale Moon accepts it so Spidermonkey is OK, Terser accepts it so V8 is OK. That's EOF, not even a linebreak where semicolon insertion could go wrong?
SeaHOH commented 2022-12-02 19:27:40 +00:00 (Migrated from github.com)

Someone maybe direct write the whole content to HTML output as is, if a bracket pair follow up it, then cause error.

Someone maybe direct write the whole content to HTML output as is, if a bracket pair follow up it, then cause error.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: martok/js-darktree#1
No description provided.