Loading ...
Sorry, an error occurred while loading the content.

1682RE: [jslint] option.strict

Expand Messages
  • Rob Richardson
    Dec 13, 2010
    • 0 Attachment
      You've specified "at the top of the file" twice. Did you intend to identify
      the second as "the top of a function"?


      -----Original Message-----
      From: jslint_com@yahoogroups.com [mailto:jslint_com@yahoogroups.com] On
      Behalf Of Douglas Crockford
      Sent: Monday, December 13, 2010 3:54 PM
      To: jslint_com@yahoogroups.com
      Subject: [jslint] option.strict

      Some famous websites are failing on the latest browsers because they have
      been concatenating strict mode scripts with non-strict mode scripts. This
      causes the non-strict scripts to fail.

      There are two ways to specify strict mode. The first is to place "use
      strict"; at the top of the file. This contributes to the comcatenation
      failure. The second is to place "use strict"; at the top of a file. This
      gives the strictness function scope, which is much more reliable.

      JSLint's option.strict now accepts the second form. Soon it will reject the
      first form.
    • Show all 9 messages in this topic