... Sorry about that. I was finishing this in an airport, and I rushed the push to make a flight. Please try it now....
2014
Woomla
woomla...
Mar 7, 2011 9:11 am
Great! Many thanks. No need to do something alike myself anymore :-)...
2013
jeddahbill
Mar 7, 2011 12:47 am
... The new implementation of /*properties*/ is causing problems. Consider the following code: (function () { ````var x; ````x = { ````````fa: function (arg) {...
2012
Douglas Crockford
douglascrock...
Mar 6, 2011 11:40 pm
The /*properties*/ (formerly known as /*members*/) and the /*global*/ directives, when placed in a function, do not influence the environment outside of the...
2011
Marc Draco
smidoid
Mar 6, 2011 1:50 pm
I'm not sure if HaXe is a dirty word around here, but I've been playing with it recently and found it a reasonable progression from Javascript when I was...
2010
Douglas Crockford
douglascrock...
Mar 5, 2011 3:24 pm
The /*jslint */ directive now respects function scope. That means that if you change an option setting inside of a function body, it will revert on leaving the...
2009
Zhami
ossayu
Mar 5, 2011 12:29 pm
Woomla: You could also move the pragma further in (rather than out) In my code, I disable such pragma immediately after the line of code I need it suspended...
2008
Douglas Crockford
douglascrock...
Mar 5, 2011 2:51 am
... It acts as a pragma. I do not recommend this use. I regret having allowed it....
2007
abyssoft@...
abyssoft...
Mar 4, 2011 8:49 pm
is. Hate when I forget to finish a though. Thats what I get for multitasking 8-/...
2006
abyssoft@...
abyssoft...
Mar 4, 2011 8:48 pm
Neither of those are lexically correct however /*jslint bitwise: false*/ // allow bitwise operators function twiddle(a, b) { return a & b; } /*jslint bitwise:...
2005
Joshua Bell
inexorabletash
Mar 4, 2011 7:09 pm
On Fri, Mar 4, 2011 at 8:29 AM, Douglas Crockford <douglas@...> ... Does the jslint directive apply within a lexical scope, or does it function like...
2004
Douglas Crockford
douglascrock...
Mar 4, 2011 4:30 pm
... No it shouldn't. JSLint allows those directives at statement position only....
2003
Woomla
woomla...
Mar 4, 2011 3:59 pm
You have to reply and edit the code there because the html strips the spaces. Or get the code from: http://jsfiddle.net/5WLp8/. Copy and paste it into...
2002
Woomla
woomla...
Mar 4, 2011 2:07 pm
Hi, This code gives a message: Problem at line 5 character 9: Expected an identifier and instead saw '/*jslint39; (a reserved word). That's correct and it's my...
2001
Douglas Crockford
douglascrock...
Feb 28, 2011 10:43 pm
... I have always been opposed to programming in ignorance, and I have worked hard to try to improve the knowledge and thoughtfulness of this community. Simply...
2000
Luke Page
page.luke...
Feb 28, 2011 9:26 pm
I have made modifications to my own version along these lines.. 1. Fixed what looks like a typo in discard that appends prev.postcomments concat...
1999
Luke Page
page.luke...
Feb 28, 2011 9:16 pm
The prime example of this fragmentation can be seen with the recently announced jshint.. I'm surprised no one here has yet mentioned it. I agree that...
1998
Rob Richardson
erobrich@...
Feb 28, 2011 7:51 pm
I have to disagree. If there was a consistent style taught by all and/or enforced by all, it would be reasonable to apply it universally to all in a tool we...
1997
Erik Eckhardt
vorpalmage
Feb 28, 2011 7:11 pm
Douglas, That makes eminent sense. As a would-be writer myself, you're speaking my language. I appreciate the parallel. I'm sure others do, too. Erik On Mon,...
1996
Douglas Crockford
douglascrock...
Feb 28, 2011 6:39 pm
The place to express yourself in programming is in the quality of your ideas, and the efficiency of execution. The role of style is the same as in literature....
1995
martijnbeulens
Feb 28, 2011 4:19 pm
In dwlint 1.0.0.5 a very nasty bug occurred when dwlint ran multiple times over a large JS document. I corrected the mistake and publsihed a new version....
1994
zbordie_flickr
Feb 28, 2011 10:45 am
Like I said, I'm not trying to validate the JS. I'm trying to find out where it starts and where it ends. I have no problem with dynamically generated code....
1993
Cheney, Edward A SSG ...
sandyhead25
Feb 27, 2011 1:18 pm
Classification: UNCLASSIFIED ... This is the logic I use for Pretty Diff: if (apilang === "auto") { autotest = true; if (new RegExp(/^(92;s*<)/).test(apisource)...
1992
Douglas Crockford
douglascrock...
Feb 27, 2011 12:46 am
... No. Try this: fs.mkdir(dirname, parseInt('755', 8), callback); Octal is really hazardous, and it is rarely useful. For those rare useful cases, it is worth...
1991
Martin Cooper
mfncooper
Feb 27, 2011 12:33 am
Working with Node.js (and probably other SSJS solutions), it's pretty common to find yourself working with the file system and using file permissions the...
1990
Douglas Crockford
douglascrock...
Feb 27, 2011 12:14 am
... Comments are being collected for a JSMax future feature. It is not finished yet, and I am not announcing if or when it ever will be finished. I have to...
1989
Marc Draco
smidoid
Feb 26, 2011 10:18 pm
This is a little O/T, sorry for that in advance. I agree with Douglas on pretty much everything (he's even helped to get me physically fitter!) with one...
1988
Luke Page
page.luke...
Feb 26, 2011 10:02 pm
Hi, I'm scanning the jslint tree after processing to detect todo comments and warn about them. I also have a plan to validate vsdoc/jsdoc as well. Do you have...
1987
paulb777
Feb 26, 2011 7:15 pm
Install New Software to http://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/download Choose jslint4java and, if needed,...
1986
Douglas Crockford
douglascrock...
Feb 26, 2011 6:00 pm
... JSLint contains an XML parser. A very early version of JSLint tried to use it to do what you are suggesting. The difficulty of looking for script in PHP...