Comment #4 on issue 308 by [email protected]: Javascript 1.6 Array generics
don't work?
http://code.google.com/p/v8/issues/detail?id=308
The prototype function is attached to Array.prototype. I.e., it creates a
function
on all array objects (or, incidentally, it doesn't, as this is a
non-standard
function that Safari and Chrome already support).
The function you call, if I parse the error message correctly, is
Array.filter.
You can try creating this yourself:
Array.filter = function filter(array, test) {
return Array.prototype.filter.call(array, test);
}
This might do what you need (not tested).
--
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
-~----------~----~----~----~------~----~------~--~---