Bug 831076 - Enter a compartment in jsd. r=mrbkap

This commit is contained in:
Bobby Holley 2013-02-04 15:13:14 +00:00
parent 9124b9b5fd
commit e03bc92cec

View File

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