<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Function.prototype.bind: Bound functions must use the [[Prototype]] of their target function instead of Function.prototype"
href="https://bugs.webkit.org/show_bug.cgi?id=145605#c31">Comment # 31</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Function.prototype.bind: Bound functions must use the [[Prototype]] of their target function instead of Function.prototype"
href="https://bugs.webkit.org/show_bug.cgi?id=145605">bug 145605</a>
from <span class="vcard"><a class="email" href="mailto:ggaren@apple.com" title="Geoffrey Garen <ggaren@apple.com>"> <span class="fn">Geoffrey Garen</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=145605#c30">comment #30</a>)
<span class="quote">> 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.</span >
"Empty object" means an instance of JSFinalObject. We can't use emptyObjectStructureForPrototype because we're creating an instance of JSBoundFunction.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>