Bug 776660 - Return null from EnsureExpandoObject instead of false; r=bholley

This commit is contained in:
Ehsan Akhgari 2012-07-23 15:58:41 -04:00
parent 117b7fa829
commit 9a6ac3a438

View File

@ -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) {