JavaScript ES5 Strict Mode Enforcement

LockerService implicitly enables JavaScript ES5 strict mode. You don’t need to specify "use strict" in your code. JavaScript strict mode makes code more robust and supportable. For example, it throws some errors that would otherwise be suppressed.

A few common stumbling points when using strict mode are:

For more information about JavaScript strict mode, see the Mozilla Developer Network.