Re:Show HN: A Stargate in 140 chars of JavaScript
by littlecranky67 on Saturday November 14, 2020 @10:28AM
(#25092828)
This is nice! One thing, I try to copy/paste the code from this dweet and paste into my VSCode instance - it immetiately crashes (macOS). Anyone has the same issue? It only seems to crash when I start copying starting at egal - if I include the function() part it does not crash?
[ Parent
| on HN ]
Re:Show HN: A Stargate in 140 chars of JavaScript
by tomxor on Saturday November 14, 2020 @10:32AM
(#25092859)
Strange. It's possible the syntax highlighter is getting stuck on the UTF-16 surrogate pairs. Does it happen if you change the language to plain text before pasting in? alternatively try pasting in the decoded version (you can get it by replacing 'eval' with 'throw' in dwitter)... if the later still causes it to hang then It must be attempting to evaluate it!