Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use strict

  • Loading branch information...
commit caa8885a37afd6895e522409f7889d9333ff6dec 1 parent 1da55dd
Douglas Crockford authored
Showing with 5 additions and 4 deletions.
  1. +4 −3 fulljslint.js
  2. +1 −1  lint.html
7 fulljslint.js
View
@@ -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;
2  lint.html
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.