Permalink
Browse files

/*jslint*/

1 parent 7a18252 commit 36df833f552168056dc55152acaf28446ab4ef42 @douglascrockford committed Aug 30, 2011
Showing with 7 additions and 7 deletions.
  1. +3 −3 json.js
  2. +4 −4 json2.js
View
@@ -1,6 +1,6 @@
/*
json.js
- 2011-02-23
+ 2011-08-30
Public Domain
@@ -183,7 +183,7 @@
redistribute.
*/
-/*jslint evil: true, regexp: false */
+/*jslint evil: true, regexp: true, unparam: true */
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
@@ -202,7 +202,7 @@ if (!JSON) {
}
(function () {
- "use strict";
+ 'use strict';
function f(n) {
// Format integers to have at least two digits.
View
@@ -1,6 +1,6 @@
/*
- http://www.JSON.org/json2.js
- 2011-02-23
+ json2.js
+ 2011-08-30
Public Domain.
@@ -146,7 +146,7 @@
redistribute.
*/
-/*jslint evil: true, strict: false, regexp: false */
+/*jslint evil: true, regexp: true, unparam: true */
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
@@ -165,7 +165,7 @@ if (!JSON) {
}
(function () {
- "use strict";
+ 'use strict';
function f(n) {
// Format integers to have at least two digits.

2 comments on commit 36df833

why use 'use strict' not use "use strict" ? What is the diference between them?

I am using the convention of "..." for strings that are meaningful outside of the program, and '...' for strings that are meaningful inside the program.

Please sign in to comment.