<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><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> changed
<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>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Attachment #260962 Flags</td>
<td>review?
</td>
<td>review-
</td>
</tr></table>
<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#c27">Comment # 27</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>Comment on <span class=""><a href="attachment.cgi?id=260962&action=diff" name="attach_260962" title="Patch">attachment 260962</a> <a href="attachment.cgi?id=260962&action=edit" title="Patch">[details]</a></span>
Patch
View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=260962&action=review">https://bugs.webkit.org/attachment.cgi?id=260962&action=review</a>
<span class="quote">> Source/JavaScriptCore/runtime/JSBoundFunction.cpp:81
> + JSValue targetPrototype = targetFunction->prototype();
> + bool hasDefaultPrototype = &targetPrototype == (JSValue *)globalObject->functionPrototype();</span >
This is wrong. You're taking the address of a value on the stack, which will never be equal to the address of a value on the heap.
You should notice in testing that the hasDefaultPrototype condition never holds true.</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>