News for hackers. Stuff that matters.
Re:JavaScript Structs by demurgos on Friday October 11, 2024 @03:49AM (#41807249)
ESM is the closest to a major version for JS. It forces strict mode, which includes many non-backwards compatible changes [0]. Most notably, it removes the `with` statement. Other examples of removals are octal literals or assignments to undeclared variables.

[0]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:JavaScript Structs by ifwinterco on Friday October 11, 2024 @06:28AM (#41808168)
Yep, it's going to take time but eventually one day the vast majority of JS code in the wild will be strict mode and the non-strict stuff will be de facto deprecated and not expected to work everywhere