You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parentheses are put in the wrong place near a constructor. This is the weirdest part of the JavaScript (and CoffeeScript) grammar, and we get it wrong.
To repro, enter this file in text mode:
url = 'https://upload.wikimedia.org/wikipedia/commons/2/27/Rainstick.ogg'
new Audio(url).play()
Play it. Hear a nice sound.
Switch to block mode. Click on the (url) parameter and click away.
Notice new (Audio(url)).play(). This means something different.
Try to play it. Get an error message about invoking Audio with out "new".
We should detect the new case and be particularly careful about reparsing.
The text was updated successfully, but these errors were encountered:
Parentheses are put in the wrong place near a constructor. This is the weirdest part of the JavaScript (and CoffeeScript) grammar, and we get it wrong.
To repro, enter this file in text mode:
new (Audio(url)).play()
. This means something different.We should detect the
new
case and be particularly careful about reparsing.The text was updated successfully, but these errors were encountered: