Closed
Bug 1134968
Opened 10 years ago
Closed 10 years ago
JS_NewObjectWithGivenProto will happily create null-parent objects if you pass in a null proto
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
Unlike JS_NewObject, which will default null parent to the global, JS_NewObjectWithGivenProto defaults it to the parent of the proto, if there is a proto. If not, it leaves it null.
We should probably default it to the global instead.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8566960 -
Flags: review?(jwalden+bmo)
Updated•10 years ago
|
Attachment #8566960 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•