Commit fffe02d
committed
Make stringify produce parser-compatible quoted names
Param names that aren't bare identifiers were quoted with JSON.stringify, which emits escapes like \n that parse() reads back as the literal letter n, so a name containing a control character didn't survive a parse->stringify->parse round trip. Quote with only the escapes the parser understands instead.1 parent c83a925 commit fffe02d
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
658 | 669 | | |
659 | 670 | | |
660 | 671 | | |
661 | 672 | | |
662 | | - | |
| 673 | + | |
663 | 674 | | |
664 | 675 | | |
665 | | - | |
| 676 | + | |
666 | 677 | | |
667 | 678 | | |
668 | 679 | | |
| |||
0 commit comments