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:
dbaron%dbaron.org
2006-02-22 00:49:55 +00:00
parent 3ad008c538
commit 373f77a74d

View File

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