by nailer · 9y ago · 0 comments
https://leanpub.com/understandinges6/read#leanpub-auto-chang...
// non-strict mode top-level code
function foo (complex = eval("1+1"), moreComplex = (function(){ with (this) { return bar; } }())) {
"use strict"; // go back and parse the parameters again but this time with strict mode semantics
// ...
}[1] https://www.nczonline.net/blog/2016/10/the-ecmascript-2016-c...
- [0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Modules and classes are always in strict mode. In practice, it really isn't an issue.