From e03bc92cec618c60702b12d42eb06a1773d782a7 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Mon, 4 Feb 2013 15:13:14 +0000 Subject: [PATCH] Bug 831076 - Enter a compartment in jsd. r=mrbkap --- js/jsd/jsd_val.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/js/jsd/jsd_val.cpp b/js/jsd/jsd_val.cpp index 20249cc2cbd..a8cad6d005a 100644 --- a/js/jsd/jsd_val.cpp +++ b/js/jsd/jsd_val.cpp @@ -323,6 +323,7 @@ jsd_GetValueWrappedJSVal(JSDContext* jsdc, JSDValue* jsdval) jsval val = jsdval->val; if (!JSVAL_IS_PRIMITIVE(val)) { cx = JSD_GetDefaultJSContext(jsdc); + JSAutoCompartment ac(cx, JSVAL_TO_OBJECT(val)); obj = JS_ObjectToOuterObject(cx, JSVAL_TO_OBJECT(val)); if (!obj) {