3 ms·
I was worried that leading with `attachEvent` would get a response about only `attachEvent`. The `with` statement is described on page 75 of the ES3 standard[0
by reificator 6y ago
I was worried that leading with `attachEvent` would get a response about only `attachEvent`.
The `with` statement is described on page 75 of the ES3 standard[0]. It does not work in an ES Module or in a strict mode context. This is a breaking change.
[0]: https://www-archive.mozilla.org/js/language/E262-3.pdf https://www-archive.mozilla.org/js/language/E262-3.pdf
- brundolf 6y agoStrict mode was invented as a way of introducing a handful of "breaking" changes without them actually being breaking, since it's opt-in. JavaScript had some egregious design issues from the beginning and strict mode is a remedy to some of them. But when most people say "breaking changes" they mean things that suddenly cause legacy code to stop working, and non-strict mode will almost certainly be supported ad infinitum, so I don't really count that. It's also almost certainly never going to happen again.