Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNever start a line with ` because of tagged template strings #289
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Issue opened on eslint: eslint/eslint#4169 |
feross
added
bug
blocked
labels
Oct 16, 2015
This comment has been minimized.
This comment has been minimized.
|
Turns out this is a bug in V8. See the bug I filed here: https://code.google.com/p/v8/issues/detail?id=4497 A semicolon should automatically be inserted by the JS engine. The fact that it isn't in node v4 is a bug. Fortunately, the V8 developers say it's fixed in Mystery solved. We don't need to detect this case in |
feross
closed this
Oct 19, 2015
This comment has been minimized.
This comment has been minimized.
|
Thanks for your clarification. Just one more question: Would this case let x = () => {}
let y = x
`hello`be parsed to let x = () => {};
let y = x`hello`;or let x = () => {};
let y = x;
`hello`;? |
This comment has been minimized.
This comment has been minimized.
|
@gyson I think it will actually be parsed to the first one. :( Fortunately, the eslint developers are aware and plan to improve the rule: eslint/eslint#4169 (comment) |
This comment has been minimized.
This comment has been minimized.
|
@feross I see. Thanks. |
gyson commentedOct 11, 2015
because
will output
(tested with nodejs v4.1.0)