Fix build bustage from bug 500846.

This commit is contained in:
Blake Kaplan 2009-07-01 12:27:24 -07:00
parent 79d2a918d8
commit 4ee6a3c9c0

View File

@ -5744,7 +5744,7 @@ ResolvePrototype(nsIXPConnect *aXPConnect, nsGlobalWindow *aWin, JSContext *cx,
if (proto &&
(!xpc_proto_proto ||
JS_GET_CLASS(cx, xpc_proto_proto) == nsDOMClassInfo::GetObjectClass())) {
JS_GET_CLASS(cx, xpc_proto_proto) == sObjectClass)) {
if (!::JS_SetPrototype(cx, dot_prototype, proto)) {
return NS_ERROR_UNEXPECTED;
}