W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

Re: Top Level Array Generics

From: David Bruant <bruant.d@gmail.com>
Date: Fri, 08 Nov 2013 19:36:04 +0100
Message-ID: <527D2F14.1000108@gmail.com>
To: Garrett Smith <dhtmlkitchen@gmail.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Le 08/11/2013 19:27, David Bruant a écrit :
> Le 07/11/2013 08:31, Garrett Smith a écrit :
>> Also, Array.filter is NaN in Chrome.
> ... I don't even... Whoaaa... isNaN(Array.filter) is true in Firefox 
> as well...
Alright, for Firefox it's normal.

isNaN(Array.filter) =>
    Array.filter.[[DefaultValue]]() =>
    Array.filter.valueOf() =>
    Array.filter.toString() (source code with the [native code] thing)
isNaN(Array.filter.toString()) returns true (because the string isn't 
parsable as a number).

But something remains absurd  for Chrome where Array.filter isn't defined.

David
Received on Friday, 8 November 2013 18:36:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:19 UTC