1682RE: [jslint] option.strict
- Dec 13, 2010You've specified "at the top of the file" twice. Did you intend to identify
the second as "the top of a function"?
From: firstname.lastname@example.org [mailto:email@example.com] On
Behalf Of Douglas Crockford
Sent: Monday, December 13, 2010 3:54 PM
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
- << Previous post in topic Next post in topic >>