Closed Bug 898670 Opened 11 years ago Closed 11 years ago

[binary data] Move StructType FieldList access into separate function.

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: nsm, Assigned: nsm)

References

Details

Attachments

(1 file)

trace() and free() receive a JSObject with no associated JSContext to convert easily to Rooted. Is it acceptable to assume that obj is of the right type in those calls?
Attachment #782271 - Flags: review?(nmatsakis)
Attachment #782271 - Flags: review?(nmatsakis) → review+
Nikhil, it is safe to assume in calls to trace/free that the object you receive is of the appropriate class, yes. Those are not script-accessible functions that can be misapplied to the wrong kind of object.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: