While this made poorly-written scripts run, arguably they didn’t run well. In ECMA5, strict mode was introduced to solve the problems of lenient interpretation.
Strict mode according to the Mozilla Developer Network :
- Prohibits some syntax likely to be defined in future versions of ECMAScript.
In interpreters that don’t support strict mode, this expression will be interpreted as a string and do nothing.