You've specified "at the top of the file" twice. Did you intend to identify the second as "the top of a function"? Rob ... From: jslint_com@yahoogroups.com...
1681
Douglas Crockford
douglascrock...
Dec 13, 2010 11:19 pm
... Wrong. All functions in this file are strict. Also, if you concatenate any programs to the end of this file, they will be strict, too. ... This is better....
1680
Ger Hobbelt
i_a42
Dec 13, 2010 11:15 pm
... or should I do something like this? ... Pending an answer from Mr. Crockford, I'd say the latter is the preferred one. -- Met vriendelijke groeten / Best...
1679
Ger Hobbelt
i_a42
Dec 13, 2010 11:13 pm
On Mon, Dec 13, 2010 at 11:53 PM, Douglas Crockford ... I assume you meant to say 'function39; in that second line? (Otherwise the only diff I see is 'a' vs....
1678
AJ ONeal
coolaj86
Dec 13, 2010 11:08 pm
I haven't used a browser in which "use strict" does anything yet, but is this assumption correct? // begin myfile.js: "use strict"; (function () { // this...
1677
Douglas Crockford
douglascrock...
Dec 13, 2010 10:53 pm
Some famous websites are failing on the latest browsers because they have been concatenating strict mode scripts with non-strict mode scripts. This causes the...
1676
Douglas Crockford
douglascrock...
Dec 13, 2010 10:40 pm
... K&R is an excellent book, but it is about an entirely different language. If you are going to be working with JavaScript, you need relevant documentation. ...
1675
Jakob Kruse
thekrucible
Dec 13, 2010 3:08 pm
I for one think the message/error is pretty clear. You turned on an option to disallow the use of '++'. Then you used '++'. That seems 'unexpected39; to me. It...
1674
grahamj_42
Dec 13, 2010 2:55 pm
... And where did the JavaScript 'for' construct come from, if not from C? However, you missed the irony in my post. As anyone who has learned C finds this way...
1673
Dominic Mitchell
happygiraffe...
Dec 13, 2010 6:51 am
On Mon, Dec 13, 2010 at 1:46 AM, Jean-Charles Meyrignac < ... "everybody"? ... This also fails to pass muster with JSLint. ... This bears no relevance to...
1672
Jean-Charles Meyrignac
jcmeyrignac
Dec 13, 2010 1:46 am
... Everybody knows that this is bad ! In fact, it should be: for ( i=0 ; i<10 ; ++i ) { /* some code */ } And yes, I'm an old C coder, and, a long time ago,...
1671
Brant Gurganus
brgurga
Dec 13, 2010 1:10 am
... Hash: SHA512 ... Besides what grahamj_42 indicated, citing a reference for a different language doesn't make sense. If such a thing existed, cite K&R ...
1670
Harry Whitfield
harry152566
Dec 12, 2010 10:19 pm
... From http://www.jslint.com/lint.html ++ and -- The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by encouraging...
1669
grahamj_42
Dec 12, 2010 9:53 pm
var i; for ( i=0 ; i<10 ; i++ ) { /* some code */ } The i++ here is straight from K&R C, and so should be expected! I haven't found a previous remark about...
1668
Douglas Crockford
douglascrock...
Dec 10, 2010 3:22 pm
... \v is not allowed by JSON. Please try it now....
1667
AJ ONeal
coolaj86
Dec 10, 2010 6:17 am
I think I understand now: "\v" should instead be escaped as "\u000B". ... additionally, a bug should be filed for any software that uses vertical tabs. AJ...
1666
AJ ONeal
coolaj86
Dec 10, 2010 6:10 am
jslint.com says that this is valid, Firefox JSON.parse agrees jsonlint.com disagrees as does v8 JSON.parse / node.js { "ID3v1" : { "title" : "TRACK 11", ...
1665
AJ ONeal
coolaj86
Dec 8, 2010 8:44 pm
Works for me. Thanks. AJ ONeal ... [Non-text portions of this message have been removed]...
1664
Douglas Crockford
douglascrock...
Dec 8, 2010 8:37 pm
... Thanks. Please try it now....
1663
coolaj86
Dec 8, 2010 8:02 pm
https://gist.github.com/733715 { "ID3v1": { "title": "Michael Bolton \'92;' Said i lov", "artist": "Michael Bolton \'92;' Said i lov", "genre": "Blues" } } ...
1662
abyssoft@...
abyssoft...
Dec 8, 2010 4:11 pm
... Douglas, that was indeed my point. A little extra background, I was running fulljslint.js un-minified as the source through itself, when I saw that no more...
1661
Douglas Crockford
douglascrock...
Dec 8, 2010 4:29 am
... Of course I am not going to take your advice because it would stupid to, which perhaps was your point. JSLint should be run against source code, not...
1660
abyssoft@...
abyssoft...
Dec 7, 2010 5:01 pm
... changing line 5450 from predefined[39;eval39;] = to predefined[["e", "v", "a", "l"].join("")] = Fixes the need for evil : false No longer any strict violations...
1659
abyssoft@...
abyssoft...
Dec 7, 2010 4:55 am
... I've always found, the fact that the validator's code fails to validate to be entertaining in strange and perverse way. And the fact that it is minified as...
1658
abyssoft@...
abyssoft...
Dec 6, 2010 6:55 pm
I've always found, the fact that the validator's code fails to validate to be entertaining in strange and perverse way. And the fact that it is minified as a...
1657
graham_king_3
Dec 6, 2010 7:16 am
Dom, Jakob, jslint4java is exactly what I was looking for. Thanks! Graham...
1656
Jakob Kruse
thekrucible
Dec 5, 2010 1:42 pm
Graham, I haven’t tried it, but the table actually does list a Rhino version: http://code.google.com/p/jslint4java/ /Jakob Fra: jslint_com@yahoogroups.com...
1655
Dominic Mitchell
happygiraffe...
Dec 5, 2010 7:24 am
... jslint4java offers a command line version. You have to say "java -jar jslint4java.jar some.js". There's no inotify support, but it could always be...
1654
graham_king_3
Dec 5, 2010 5:29 am
I too would love to know how to keep running this from Rhino, or in fact simply from a unix command line. No-one has yet added a Rhino version to the database....
1653
Marcel Duran
marcelduran
Nov 30, 2010 1:36 pm
I've just fixed the test problems, thanks all for detecting these errors. FYI, JSPerf allows anyone to edit any test by appending /edit to the url test, so you...