Closed Bug 819158 Opened 12 years ago Closed 12 years ago

Implement stopAtOuter for UnwrapObjectChecked

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file)

It's starting to get annoying to JS_ObjectToInnerObject after every UnwrapObjectChecked. Let's align the semantics here with js::UnwrapObject.
Blocks: 658909
We need to simultaneously stop marking outers as unsafe to unwrap, otherwise we'll end up with paradoxical behavior whereby stopAtOuter=true returns null but stopAtOuter=false returns an object. This is fine, because we're now handling outer explicitly.
Attachment #713498 - Flags: review?(mrbkap)
Attachment #713498 - Flags: review?(mrbkap) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: