$ escape sequences in quasis
# Waldemar (14 years ago)
If unicode character u+1234 is an identifier character, then this is a substitution of a variable whose name is that one-letter identifier just like any other $foo substitution would be. If not, then this is the two characters $ and u+1234.
# Mike Samuel (14 years ago)
2011/5/26 Waldemar <waldemar at google.com>:
If unicode character u+1234 is an identifier character, then this is a substitution of a variable whose name is that one-letter identifier just like any other $foo substitution would be. If not, then this is the two characters $ and u+1234.
Good point about escape sequences that decode to characters in IdentifierStart and IdentifierPart. Will update the wiki grammar to reflect that.
What is your feeling on the meaning of
$\u1234
using the default quasi handler that simply joins non-raw literal portions on empty string?Should that be equivalent to "\u1234" or "$\u1234"?