From 00fc6e1f7e9530c7fef9c2ca4d4dd7c30751736a Mon Sep 17 00:00:00 2001 From: Eric Faust Date: Tue, 15 Apr 2014 13:08:41 -0700 Subject: [PATCH] Bug 978235 - Add missing JSAutoCompartment to JavaScriptChild.cpp. (r=terrence over IRC) --- js/ipc/JavaScriptChild.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ipc/JavaScriptChild.cpp b/js/ipc/JavaScriptChild.cpp index 0958eb3368cc..c554f9a108ac 100644 --- a/js/ipc/JavaScriptChild.cpp +++ b/js/ipc/JavaScriptChild.cpp @@ -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);