Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29322

Re: Found a bug in javascript see what it printout

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Found a bug in javascript see what it printout
Date 2016-01-18 19:59 +0100
Organization PointedEars Software (PES)
Message-ID <3610642.bVce6HhO8U@PointedEars.de> (permalink)
References <4ab38ff8-e97b-43cb-9077-b5ca6ee23ea1@googlegroups.com> <n7gqrt$frb$1@gioia.aioe.org>

Show all headers | View raw


Chris M. Thomasson wrote:

>> wrote in message
>> news:4ab38ff8-e97b-43cb-9077-b5ca6ee23ea1@googlegroups.com...

That is an attribution novel, not a proper attribution.  Not only is it too 
long, the name of the author is missing.  Also, the quotation level is 
wrong: the attribution line that *you* create is obviously not part of the 
quoted text, so it must not have a quotation character.  If your newsreader 
software (Windows Live Mail) cannot be configured properly, get a better 
one, such as KNode or Thunderbird/Icedove.

> [...]
> 
> AFAICT, you really need to drill down on the (var) keyword...
> _____________________
>> function main(){
>> base=10;
>> outStr="";
>> prime=false;
>> primeleg=false;
>> j=1;
>> i=j;
> }
> _____________________
> 
> The above can be really dangerous!
> 
> http://scribu.net/blog/javascript-var-keyword-for-php-developers.html
> 
> ;^)

1. There is no “Javascript” (see also my sig).

2. It is worse than described in that article.  The code above will throw a 
   ReferenceError exception in strict mode if base etc. do not resolve to
   the property of an object or have not been declared identifiers of
   variables.  Or, if they resolve to properties of an object, and those
   properties can or cannot be written to, anything can happen, depending on
   the object and the property.  (The latter is independent of the execution 
   mode.)  We have discussed this here many times before.

3. The From header field value of your posting violates RFC 5536 and 
   disregards netiquette.  While that may be acceptable to a source of
   trolls such as aioe.org, in Usenet it is not.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Found a bug in javascript see what it printout jonas.thornvall@gmail.com - 2016-01-16 15:14 -0800
  Re: Found a bug in javascript see what it printout jonas.thornvall@gmail.com - 2016-01-16 15:24 -0800
  Re: Found a bug in javascript see what it printout "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-16 16:05 -0800
  Re: Found a bug in javascript see what it printout "Chris M. Thomasson" <nospam@nospam.nospam> - 2016-01-17 11:42 -0800
    Re: Found a bug in javascript see what it printout Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-18 19:59 +0100
      Re: Found a bug in javascript see what it printout "Chris M. Thomasson" <nospam@nospam.nospam> - 2016-01-18 11:19 -0800

csiph-web