Closed Bug 898670 Opened 6 years ago Closed 6 years ago

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

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set

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.
https://hg.mozilla.org/mozilla-central/rev/7e79de7e2840
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.