| Summary: | Invalid escape sequence with a non-octal-eight | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jefferson Junior <junior.jefferson> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED MOVED | ||
| Severity: | Normal | CC: | ross.kirsling |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Jefferson Junior
2020-06-07 20:14:54 PDT
Based on the spec: https://tc39.es/ecma262/#sec-literals-string-literals https://tc39.es/ecma262/#sec-additional-syntax-string-literals https://tc39.es/ecma262/#sec-template-literal-lexical-components https://tc39.es/ecma262/#sec-static-semantics-template-early-errors It would appear that our behavior is correct -- namely, it's only non-template strings that should support numeric escapes other than '\0'. If so, then the thing to do here would be to add test262 cases for the other engines to fix. (In reply to Ross Kirsling from comment #1) > It would appear that our behavior is correct -- namely, it's only > non-template strings that should support numeric escapes other than '\0'. Oops, I ended my sentence too early. Should be "... in sloppy mode." Closing here but opened https://github.com/tc39/test262/issues/2653 for the remaining work. |