Bug 8742
Summary: | duplicate keys in prototype chain | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, ian |
Priority: | P3 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://www.mochikit.com/examples/interpreter/index.html |
Eric Seidel (no email)
http://www.mochikit.com/examples/interpreter/index.html
type:
a = {b: 1}; b = clone(a); b.b = 2; keys(b)
you'll note that keys shows [b, b], unlike firefox.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
That expands to:
a = {b: 1}; B = function () {}; B.prototype = a; b = new B(); b.b = 2; keys(b);
Alexey Proskuryakov
See also: bug 7658, bug 6639, bug 7543.
Alexey Proskuryakov
*** This bug has been marked as a duplicate of 9950 ***