Permalink
Browse files

use strict

  • Loading branch information...
1 parent 1da55dd commit caa8885a37afd6895e522409f7889d9333ff6dec @douglascrockford committed Dec 17, 2010
Showing with 5 additions and 4 deletions.
  1. +4 −3 fulljslint.js
  2. +1 −1 lint.html
View
7 fulljslint.js
@@ -1,5 +1,5 @@
// jslint.js
-// 2010-12-14
+// 2010-12-16
/*
Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -2726,7 +2726,8 @@ loop: for (;;) {
while (!f && nexttoken.from > indent) {
indent += option.indent;
}
- if (!use_strict() && !m && !f && option.strict) {
+ if (!f && !use_strict() && !m && option.strict &&
+ funct['(context)']['(global)']) {
warning("Missing \"use strict\" statement.");
}
a = statements();
@@ -5792,7 +5793,7 @@ loop: for (;;) {
};
itself.jslint = itself;
- itself.edition = '2010-12-14';
+ itself.edition = '2010-12-16';
return itself;
View
2 lint.html
@@ -627,7 +627,7 @@ <h2 id=options>Options</h2>
<tr>
<td>Require <code>&quot;use strict&quot;;</code> </td>
<td><code>strict</code></td>
- <td><code>true</code> if the ES5 <code>"use strict";</code> pragma
+ <td><code>true</code> if the ES5 <code><a href="http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/">"use strict";</a></code> pragma
is required. Do not use this option carelessly.</td>
</tr>
<tr>

0 comments on commit caa8885

Please sign in to comment.