News for hackers. Stuff that matters.
Re:ES6 in Depth: Classes by thomasfoster96 on Thursday July 23, 2015 @01:24PM (#9937180)
Fun fact: code within a class definition is always strict mode code. Indeed, so is anything within a module.
Re:ES6 in Depth: Classes by TazeTSchnitzel on Thursday July 23, 2015 @05:49PM (#9938734)
w-what?!

So there is a new way to activate strict mode?!

Re:ES6 in Depth: Classes by thomasfoster96 on Friday July 24, 2015 @01:53AM (#9940286)
Nope, you'll still need to use "use strict" if you're not in a class definition or a module. It's just that classes and modules are strict mode by default (and there's no way of changing that as far as I know).