Created attachment 371664 [details] Screenshot of the issue Steps to reproduce: 1. Inspect `[{a: {b: {"\n": 1}}}]` and expand down to object `b`. 2. Right-click on "\n" property, "Copy Path to Property". 3. Paste from clipboard, you get: ``` $1[0].a.b[" "] ``` Which is not valid and causes SyntaxError when executing.
Created attachment 371668 [details] Patch
FYI, Chrome devtools shows: `b: {"↵": 1}` in the console.
Comment on attachment 371668 [details] Patch r=me, nice catch.
Comment on attachment 371668 [details] Patch Clearing flags on attachment: 371668 Committed r246271: <https://trac.webkit.org/changeset/246271>
All reviewed patches have been landed. Closing bug.
<rdar://problem/51592479>