Root cloned function object before calling WrapFunction on it. b=327716 r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@190771 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -852,6 +852,8 @@ XPC_NW_NewResolve(JSContext *cx, JSObject *obj, jsval id, uintN flags,
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
AUTO_MARK_JSVAL(ccx, OBJECT_TO_JSVAL(funobj));
|
||||
|
||||
#ifdef DEBUG_XPCNativeWrapper
|
||||
printf("Wrapping function object for %s\n",
|
||||
::JS_GetStringBytes(JSVAL_TO_STRING(id)));
|
||||
|
||||
Reference in New Issue
Block a user