Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27333
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Puzzling JS Error |
| Date | 2015-04-11 22:07 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mgcgfm$bun$1@speranza.aioe.org> (permalink) |
| References | (3 earlier) <mgc2hl$e88$1@speranza.aioe.org> <2172415.g2VhMMEByA@PointedEars.de> <mgc75b$or6$1@speranza.aioe.org> <6827636.tojzTVapKU@PointedEars.de> <9301741.hI6YXm1qAv@PointedEars.de> |
On 11/04/2015 20:07, Thomas 'PointedEars' Lahn wrote: > Thomas 'PointedEars' Lahn wrote: > >> You are talking about the wrong recommendation of >> >> if (jsx.net === undefined) >> >> of JS*L*int. It is wrong because the “undefined” property of the global >> object has been writable before, > > … – and because > > typeof x != "undefined" > > is _not_ functional equivalent to > > x !== undefined > > even if the value of the “undefined” property is the default of type > Undefined. Because the latter throws a ReferenceError exception if “x” > cannot be resolved, the former does not – … > >> but Douglas Crockford is either unaware of that or chooses to ignore it, >> like so many other issues. Avoid JSLint. > 100% agreed. Thanks for commenting on the JSLint issue. -- Joao Rodrigues
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Puzzling JS Error "Mel Smith" <syntel@cox.net> - 2015-04-09 11:49 -0600
Re: Puzzling JS Error "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-04-09 22:21 +0200
Re: Puzzling JS Error "Mel Smith" <syntel@cox.net> - 2015-04-09 16:26 -0600
Re: Puzzling JS Error "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-04-10 10:32 +0200
Re: Puzzling JS Error Denis McMahon <denismfmcmahon@gmail.com> - 2015-04-10 14:51 +0000
Re: Puzzling JS Error "Mel Smith" <syntel@cox.net> - 2015-04-10 09:48 -0600
Re: Puzzling JS Error "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-10 18:01 +0200
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-10 00:20 +0200
Re: Puzzling JS Error JJ <jj4public@vfemail.net> - 2015-04-10 11:15 +0700
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-11 16:15 +0200
Re: Puzzling JS Error Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-04-11 18:09 -0300
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-11 23:42 +0200
Re: Puzzling JS Error Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-04-11 19:27 -0300
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-12 01:01 +0200
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-12 01:07 +0200
Re: Puzzling JS Error Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-04-11 22:07 -0300
csiph-web