Commit d03ae7a
Add strict mode and template literal error handling for unrecognized escape sequences
This commit addresses the PR review feedback to properly handle unrecognized
escape sequences according to ECMAScript specification:
- In template literals: unrecognized escape sequences are always syntax errors
- In strict mode: unrecognized escape sequences are syntax errors
- In non-strict mode: unrecognized escape sequences preserve the backslash
The implementation follows the same pattern used for octal escape sequences,
ensuring consistent error handling behavior across the lexer.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 7d83958 commit d03ae7a
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1563 | 1563 | | |
1564 | 1564 | | |
1565 | 1565 | | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
1566 | 1569 | | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
1567 | 1578 | | |
1568 | 1579 | | |
1569 | 1580 | | |
| |||
0 commit comments