Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement Template Literals Revision proposal #4798
Comments
hzoo
added
es-proposal
i: enhancement
labels
Oct 31, 2016
This comment has been minimized.
This comment has been minimized.
I'm interested in working on this. I expect I'll have a progress update or PR (at least to Babylon) within a week or so. |
This comment has been minimized.
This comment has been minimized.
Alright cool @bakkot, can join our slack if you haven't already if you need help with contributing and the process, etc |
bakkot
referenced this issue
Jan 9, 2017
Merged
Add support for invalid escapes in tagged templates #274
hzoo
added
the
Priority: High
label
Mar 18, 2017
This comment has been minimized.
This comment has been minimized.
Done in babel/babylon#274. Updating Babel in #5522, need to add the transform tests/changes |
hzoo
closed this
Mar 22, 2017
This comment has been minimized.
This comment has been minimized.
Oops this is babel, not babylon, will close when we do the transform |
hzoo
reopened this
Mar 22, 2017
hzoo
added this to the Babel 7 milestone
Mar 22, 2017
hzoo
closed this
in
#5523
Mar 22, 2017
hzoo
added
Spec: Template Literal Revision
and removed
area: tc39 proposal
labels
Oct 5, 2017
lock
bot
added
the
outdated
label
May 4, 2018
lock
bot
locked as resolved and limited conversation to collaborators
May 4, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TimothyGu commentedOct 31, 2016
The Template Literals Revision proposal reached Stage 3 in July, but is not yet implemented.
Input Code
Example derived from the proposal linked above.
Expected Behavior
The above code should execute without throwing any error.
Current Behavior
An error is currently thrown by Babylon:
Possible Solution
First step would of course be adding support for it in Babylon.
Currently, the babel-plugin-transform-es2015-template-literals plugin transforms
tag`ab\\c`;
to
To support this new syntax it could just convert
tag`\unicode and \u{55}`;
to