Detecting invalid JS strings
Is there any built-in way to "detect" invalid strings?
Here's an example:
Some questions:
1. Can I somehow detect "bad" Unicode strings?
2. Why can I console.log it, and what does it do?
3. What happens in the Deno REPL that makes it throw an error?
Here's an example:
Some questions:
1. Can I somehow detect "bad" Unicode strings?
2. Why can I console.log it, and what does it do?
3. What happens in the Deno REPL that makes it throw an error?
