mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
Bug 776660 - Return null from EnsureExpandoObject instead of false; r=bholley
This commit is contained in:
parent
117b7fa829
commit
9a6ac3a438
@ -215,7 +215,7 @@ EnsureExpandoObject(JSContext *cx, JSObject *wrapper, JSObject *target)
|
||||
// Expando objects live in the target compartment.
|
||||
JSAutoEnterCompartment ac;
|
||||
if (!ac.enter(cx, target))
|
||||
return false;
|
||||
return nsnull;
|
||||
|
||||
JSObject *expandoObject = LookupExpandoObject(cx, target, wrapper);
|
||||
if (!expandoObject) {
|
||||
|
Loading…
Reference in New Issue
Block a user