Want to avoid people accidentally converting your object to a primitive in ES6 due to type coercion? https://6to5.org/repl.html#?code=class%20Foo%20extends%20null%20%7B%7D%0Anew%20Foo()%2B''&experimental=true&playground=true&evaluate=true …
-
-
Replying to @bradleymeck
@bradleymeck the transpilation fails b/c of `null.apply(this, arguments);` but are you sure real ES6 will fail?2 replies 0 retweets 0 likes -
Replying to @bradleymeck
@getify ah it should fail (extends param should be a left hand value), but you can use https://6to5.org/repl.html#?code=function%20Epsilon()%20%7B%7D%0AEpsilon.prototype%3Dnull%3B%0A%0Aclass%20Foo%20extends%20Epsilon%20%7B%7D%0Anew%20Foo()%2B''&experimental=true&playground=true&evaluate=true … to have the proper syntax1 reply 0 retweets 1 like
Replying to @bradleymeck
@bradleymeck @getify Looks like an acorn bug. I've opened an issue https://github.com/marijnh/acorn/issues/185 …
5:05 PM - 29 Dec 2014
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 