Skip to content

Commit 5c31f6f

Browse files
Update "already defined" article to take into account the new output of JSLint
1 parent d9c2904 commit 5c31f6f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

message-articles/already-defined.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
"titles": [
44
"{a} is already defined",
5+
"Redefinition of '{a}' from line {b}",
56
"W004"
67
],
78
"slugs": [
@@ -17,6 +18,21 @@
1718
}
1819
-->
1920

21+
### History
22+
23+
This warning has existed in two forms across JSLint and JSHint. It was
24+
introduced in the original version of JSLint and has remained in both tools
25+
ever since.
26+
27+
- In JSLint releases prior to May 2015 and all versions of JSHint the warning
28+
given is *"{a} is already defined"*
29+
30+
- In JSLint releases from May 2015 and later the warning is *"Redefinition of
31+
'{a}' from line {b}"
32+
33+
The situations that produce the warning have not changed despite changes to the
34+
text of the warning itself.
35+
2036
### When do I get this error?
2137

2238
The "{a} is already defined" error is thrown when JSLint or JSHint encounters

0 commit comments

Comments
 (0)