Comment #5 on issue 308 by mkterra: Javascript 1.6 Array generics don't  
work?
http://code.google.com/p/v8/issues/detail?id=308

Thanks, erik; filter-test.js works for me too.  However, if you add this to  
the script:

  Array.filter( document.getElementsByClassName('test'), function(elem){
    return elem.nodeName == 'DIV';
  });

It generates the "has no method 'filter'" error.  Try the attached file.  
(Same as
yours, just with the above code added before the "print(filtered)" command.)

Attachments:
        filter-test2.js  854 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to