Function.prototype.constructor should use stub getter/setter

RESOLVED DUPLICATE of bug 583262

Status

()

Core
JavaScript Engine
RESOLVED DUPLICATE of bug 583262
8 years ago
8 years ago

People

(Reporter: Waldo, Assigned: Waldo)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

8 years ago
Created attachment 488311 [details] [diff] [review]
Patch

It's currently implemented with CheckCtor{G,S}etAccess, ostensibly for security reasons (which appear to only have been valid when cloning a function didn't swap in as [[Prototype]] the Function.prototype of its creator's global object).  Now, this seems unnecessary (and if actually necessary, the wrong way to accomplish the goal) in the world of compartment-based security, and Blake agrees.
Attachment #488311 - Flags: review?(jorendorff)
This is a duplicate of bug 610350, which contains the same patch and some discussion. But yeah, let's do it now...
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 610350
Wrong bug.
Duplicate of bug: 583262
Attachment #488311 - Flags: review?(jorendorff)
You need to log in before you can comment on or make changes to this bug.