Summary: |
Function.prototype.constructor should not be DontDelete/ReadOnly (Acid3 bug) |
Product: |
WebKit
|
Reporter: |
Jeff Walden (remove +bwo to email) <jwalden+bwo> |
Component: |
JavaScriptCore | Assignee: |
Darin Adler <darin> |
Status: |
RESOLVED
FIXED
|
|
|
Severity: |
Normal
|
CC: |
darin, ddkilzer, eric, ggaren, ian, mjs, sam
|
Priority: |
P2
|
|
|
Version: |
523.x (Safari 3) | |
|
Hardware: |
All | |
|
OS: |
All | |
|
URL: |
javascript:function yn(v) { return v ? "yes" : "no"; }; function c() { }; delete c.prototype.constructor; var i = new c(); var res = (i.constructor !== Object.prototype.constructor); var allres = !res; var msg = "DontDelete: " + yn(res) + "\n"; function g() { }; g.prototype.constructor = 17; var i2 = new g(); res = (i2.constructor !== 17); allres = allres && !res; msg += "ReadOnly: " + yn(res) + "\n"; function h() { }; res = true; for (var prop in new h()) { if (prop == "constructor") res = false; }; msg += "DontEnum: " + yn(res); allres = allres && res; alert("Function.prototype.constructor attribute checks " + (allres ? "PASS" : "FAIL") + "\n" + msg);
|
Bug Depends on: |
|
|
|
Bug Blocks: |
17064
|
|
|
Attachments: |
Description |
Flags |
patch
|
eric:
review+
|
|
2008-02-08 03:52 PST, Darin Adler