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)

x86
macOS
defect
Not set
normal

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.
Attachment #8566960 - Flags: review?(jwalden+bmo) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Blocks: 1136925
Depends on: 1142731
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: