Hello all,

Seeing ECMA262 section 7.8.4,

EscapeSequence ::
>     CharacterEscapeSequence
>     0 [lookahead ∉ DecimalDigit]
>     HexEscapeSequence
>     UnicodeEscapeSequence


Because of "[lookahead ∉ DecimalDigit]", strictly speaking, "\08" / "\09"
is ill formed StringLiteral.
But engines in the wild, V8, SpiderMonkey, JSC accepts this form and
recognize it as "\x008".

To bridege the gap, I think it is better to introduce this form to the spec
officially.

---
Regards,
Yusuke Suzuki
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to