[Webkit-unassigned] [Bug 145605] Function.prototype.bind: Bound functions must use the [[Prototype]] of their target function instead of Function.prototype

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 11 10:41:49 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=145605

--- Comment #31 from Geoffrey Garen <ggaren at apple.com> ---
(In reply to comment #30)
> The code *should* be correct now.
> 
> The reason I thought Structures for empty objects with a given prototype
> were cached was because I saw
> `PrototypeMap::emptyObjectStructureForPrototype`... any reason we don't use
> that here? It seems a waste to re-create the same Structure more than once.
> I'm sure this code will still perform poorly if someone has an array of
> functions with the same non-Function.prototype [[Prototype]] when they come
> to bind them.

"Empty object" means an instance of JSFinalObject. We can't use emptyObjectStructureForPrototype because we're creating an instance of JSBoundFunction.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150911/bd970d85/attachment-0001.html>


More information about the webkit-unassigned mailing list