3 ms·
open up chrome console, type `class Foo { }` and it works now out of the box. For what it's worth, when you try define a class that already exists. it throws an
by _RPM 10y ago
open up chrome console, type `class Foo { }` and it works now out of the box. For what it's worth, when you try define a class that already exists. it throws an error. It seems that re-defining an identifier with the `var` keyword will throw an error too. I don't remember this being the case before.
- TheCoreh 10y agoMaybe code on the REPL is being evaluated with strict mode on?
- _RPM 10y agois there a `isUseStrictOn()` equivalence? [0] [0] var isStrict = (function() { return !this; })();
- ravenstine 10y agoIt's been hours and nobody has showed up to call this an atrocity? The JS world really is improving.