Fix build bustage from bug 500846.
authorBlake Kaplan <mrbkap@gmail.com>
Wed, 01 Jul 2009 12:27:24 -0700
changeset 29950 608f66b040bd23feb6d904060567b172c3903b7b
parent 29949 9e01b09a82a4ebbc71869166ab47c3dae4c33673
child 29951 e7cf1bed5a0e9cc7113f52409b6ff3a72b9461bf
push idunknown
push userunknown
push dateunknown
bugs500846
milestone1.9.2a1pre
Fix build bustage from bug 500846.
dom/base/nsDOMClassInfo.cpp
--- a/dom/base/nsDOMClassInfo.cpp
+++ b/dom/base/nsDOMClassInfo.cpp
@@ -5739,17 +5739,17 @@ ResolvePrototype(nsIXPConnect *aXPConnec
     }
   }
 
   if (dot_prototype) {
     JSObject *xpc_proto_proto = ::JS_GetPrototype(cx, dot_prototype);
 
     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;
       }
     }
   } else {
     dot_prototype = ::JS_NewObject(cx, &sDOMConstructorProtoClass, proto,
                                    obj);
     NS_ENSURE_TRUE(dot_prototype, NS_ERROR_OUT_OF_MEMORY);