Skip to content
Liang Gong edited this page May 3, 2015 · 2 revisions

How do the DLint checkers relate to strict mode?

Most of the coding practices that DLint checks cannot be detected by running in JS engine's strict mode. There are two problems that might be manifested by enforcing strict mode:

  • In strict mode, global this becomes undefined.
  • In strict mode, setting property to primitive values throws an exception.

Moreover, globally enforcing strict mode might disable some third-party library code which depends on the assumption that the code would be running in non-strict mode.