Skip to content

Commit 7d34053

Browse files
unexpected_typeof_a
1 parent 3643e4d commit 7d34053

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jslint.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// jslint.js
2-
// 2012-07-23
2+
// 2012-07-24
33

44
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
55

@@ -591,7 +591,8 @@ var JSLINT = (function () {
591591
unexpected_label_a: "Unexpected label '{a}'.",
592592
unexpected_property_a: "Unexpected /*property*/ '{a}'.",
593593
unexpected_space_a_b: "Unexpected space between '{a}' and '{b}'.",
594-
unexpected_typeof_a: "Unexpected 'typeof'. Compare directly with '{a}'.",
594+
unexpected_typeof_a: "Unexpected 'typeof'. " +
595+
"Use '===' to compare directly with {a}.",
595596
unnecessary_initialize: "It is not necessary to initialize '{a}' " +
596597
"to 'undefined'.",
597598
unnecessary_use: "Unnecessary 'use strict'.",
@@ -3579,7 +3580,7 @@ klass: do {
35793580
edge();
35803581
e = expression(10);
35813582
if (left.string === 'Boolean' && (e.id === '!' || e.id === '~')) {
3582-
warn('unexpected_a', e);
3583+
warn('weird_condition', e);
35833584
}
35843585
p.push(e);
35853586
if (next_token.id !== ',') {
@@ -6421,7 +6422,7 @@ klass: do {
64216422

64226423
itself.jslint = itself;
64236424

6424-
itself.edition = '2012-07-23';
6425+
itself.edition = '2012-07-24';
64256426

64266427
return itself;
64276428
}());

0 commit comments

Comments
 (0)