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

Re: What type should .findAll return

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 12 Nov 2011 09:20:32 +1300
Message-ID: <4EBD8390.8040607@mit.edu>
To: public-script-coord@w3.org, public-webapps <public-webapps@w3.org>
On 11/11/11 10:05 PM, Jonas Sicking wrote:
> In other words, the returned object is exactly what you'd get if you did:
>
> a = new Array;
> a.__proto__ = [some type].prototype;
> [some type].prototype.__proto__ = Array.prototype;

For what it's worth, at least some JITs deoptimize |a| if you do that. 
We'd probably need to do something to make sure that _doesn't_ happen in 
this case, right?

-Boris
Received on Friday, 11 November 2011 20:21:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC