... No, I did not. Converting everyone else's JavaScript to The Good Parts is not my crusade. As I said in the ticket, my goal is to ensure that the code that...
2826
bartman1c
Mar 26, 2012 2:35 pm
I edit a greasemonkey script and I get this error now Error: Problem at line 373 character 19: Missing 'new'. GM_xmlhttpRequest({ Problem at line 415 character...
2827
douglascrockford
douglascrock...
Mar 26, 2012 3:33 pm
... Use the Tolerate uncapitalized constructors option....
2828
marcos.zanona
Mar 26, 2012 5:33 pm
I would like to use the following statement so `this` is not DOMWindow anymore, although JSLint doesn't expect so see a `.`[dot] after (function(){...}) ... ...
2829
douglascrockford
douglascrock...
Mar 26, 2012 6:30 pm
... I see no value in using this in that position. Try the following instead. It is slightly smaller and faster. (function (that) { // `that` is now {} }({}));...
2830
marcos.zanona
Mar 27, 2012 12:39 pm
It seems when defining: /*jslint es5:true*/ a = { get b () { return 'b value'; } } JSLint requires that a setter is also declared, although if the intention is...
2831
douglascrockford
douglascrock...
Mar 27, 2012 12:46 pm
... Good practice says to define them in pairs. Be explicit about the failure case....
2832
cse_html_validator
cse_html_val...
Mar 29, 2012 6:05 pm
... Well this is unfortunate. I updated am am getting reports of line #'s being off. I'd like to keep using JSLint, but I'm not sure if I can continue to do so...
2833
cse_html_validator
cse_html_val...
Mar 29, 2012 6:43 pm
... Or can the fix be put back in? I think that having to use the fix is unfortunate, but practicality would be on the side of working around MS bugs that are...
2834
Sean Kelly
seank_com
Mar 29, 2012 11:02 pm
You might look at node.js This has become my "go to" solution for running JavaScript locally. While it is designed to run really awesome web servers, and...
2835
douglascrockford
douglascrock...
Mar 30, 2012 6:08 pm
JSLint now warns when properties contain the substring 'Sync'. The use of that substring in Nodejs is to identify methods that can cause blockage. Such methods...
2836
cse_html_validator
cse_html_val...
Mar 30, 2012 7:56 pm
I may want to switch to node.js from WHS, but my setup uses wsh.js. Is there an equivalent that works the same as wsh.js but is for node.js instead of WSH?...
2837
John Hawkinson
john.hawkinson
Mar 30, 2012 9:00 pm
Isn't this misnamed? For those of us who write clean Javascript that doesn't depend on Node.js, why would we have to turn on a pejorative option name (tolerate...
2838
cse_html_validator
cse_html_val...
Mar 30, 2012 9:00 pm
... Thanks. I looked at it briefly, but I need an equivalent replacement for the code I posted in "Is there a node.js equivalent for wsh.js?". If I can get...
2839
douglascrockford
douglascrock...
Mar 30, 2012 9:02 pm
... No, it is very well named....
2840
Sean Kelly
seank_com
Mar 30, 2012 9:08 pm
Don't worry about being a JavaScript expert everyone has to start somewhere. I have found it very beneficial reading other peoples code. Look up anything you...
2841
Kirk Cerny
kirk.cerny
Mar 30, 2012 11:02 pm
Could the same be said about synchronous AJAX requests? [Non-text portions of this message have been removed]...
2842
douglascrockford
douglascrock...
Mar 30, 2012 11:20 pm
... Obviously....
2843
IcedNet Development T...
dwmcneil...
Mar 30, 2012 11:30 pm
Finally an option to rule them all... Peace, Dan...
2844
Martin Cooper
mfncooper
Mar 31, 2012 12:55 am
On Fri, Mar 30, 2012 at 11:08 AM, douglascrockford ... There are numerous valid and reasonable use cases for synchronous code in Node.js. To declare the use of...
2845
Mark Volkmann
mark_volkmann
Mar 31, 2012 2:08 am
I agree with Martin. Why not fix this by changing the name of the option to "sync" and have it default to false? ... R. Mark Volkmann Object Computing, Inc. On...
2846
Andy Dawson
using_yg_und...
Mar 31, 2012 10:35 am
Alternatively, all the other options could be renamed to follow the same convention so that all uses can consistently need to lookup what options mean instead...
2848
Morgaut Alexandre Lou...
morgaut_a
Apr 2, 2012 10:19 am
I find this option name fun and maybe It could be a right name in NodeJS context. That said, I also think that there might be some valid use of "Sync" methods...
2849
mariana.schiff
Apr 4, 2012 2:41 pm
I modified the wsh.js code to, basically, put "the fix" back in. Replace the line source = file.ReadAll(); with the following: source = File.ReadAll() ...
2850
Sean Kelly
seank_com
Apr 4, 2012 5:43 pm
OK, I updated the page, let me know if it looks right. On Wed, Apr 4, 2012 at 7:41 AM, mariana.schiff ... [Non-text portions of this message have been removed]...
2851
mariana.schiff
Apr 4, 2012 5:51 pm
Looks great (I had misspelled 'file'). Thanks for the credit, Mariana...
2852
larserik78
Apr 10, 2012 7:56 am
Hi! I've created a plugin for resharper that highglights warnings from JSLint in js files. To test it, I've started creating small testfiles, and I've gotten...
2853
douglascrockford
douglascrock...
Apr 10, 2012 9:12 am
... Yes. Fix your code, then it won't stop. For example, var i, x; i = 1; x = 2;...
2854
larserik78
Apr 10, 2012 9:19 am
... Thanks, but that's missing the point. I'm testing the highlighting from my plugin, not trying to fool JSLint into letting my own javascripts look bad. ;) ...
2855
mariana.schiff
Apr 10, 2012 5:39 pm
If you go to the Database section of this group, you'll find a link to SeanK's blog with a WSH implementation. That's the one I'm using....