Bug 978235 - Add missing JSAutoCompartment to JavaScriptChild.cpp. (r=terrence over IRC)

This commit is contained in:
Eric Faust 2014-04-15 13:08:41 -07:00
parent 72d6cd9bb6
commit 85a1b82682

View File

@ -439,6 +439,8 @@ JavaScriptChild::AnswerIsExtensible(const ObjectId &objId, ReturnStatus *rs, boo
if (!obj)
return false;
JSAutoCompartment comp(cx, obj);
bool extensible;
if (!JS_IsExtensible(cx, obj, &extensible))
return fail(cx, rs);