In chrome devtools if I first try to declare a variable but the operation fail (see example below I'm trying to assign to a not defined variable), then I get following behaviour: I'm not able to assign to the variable because of the ReferneceError at the same time I'm not able to declare it because of the SyntaxError. See screen below.
The following seems a bit illogical to me. Could someone explain?
I'm using Chrome Version 55.0.2883.95 (64-bit) on OS X El Capitan.
Testing this in Firefox I am seeing it function as you'd expect. Where you can later set x = 2;
just fine. Please file a bug on the chromium bug tracker so the Chrome team can triage this and get it working.
Thank you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With