fisker Cheung
fisker Cheung
Any reason you don't want `=== -1` and `!== -1`?
I tried to fix this issue, but seems not easy as I thought. Other broken cases ```js for (const value in values) { const a = 1; const match =...
Actually `TemplateElement.raw` is in ESTree, https://github.com/estree/estree/blob/2bc9ea235184b6164e31b1088575447657e686c6/es2015.md?plain=1#L186 .
As I understand, `.cooked` should convert line breaks to `\n`, since the linebreak is always `\n`, ``` eval('`\r\n`') // '\n' ``` But escaped `` `\r` `` should be preserved.
I agree that Meriyah produces wrong `.cooked`, but it's not clear what `.raw` should be, it's not in ESTree. Maybe we should ask ESTree about `.raw` first. ``` > require('acorn').parse('`\r\\r`').body[0].expression.quasis[0]...
I think we should follow https://github.com/estree/estree/issues/90#issuecomment-109198552
Duplicate of #488
If we agree to update the range of `Program`, can we reconsider updating the range of `TemplateElement` too? The location covers `${` and `}` doesn't make sense.
No, I won't. It's none of my business, just a reminder.
I think it's a prettier-vscode issue, transferred.