Fixing bug 200038. Fixing bogus assertion triggerd in venkman. r=heikki@netscape.com, sr=peterv@netscape.com

This commit is contained in:
jst%netscape.com 2003-04-09 04:40:20 +00:00
parent 7f11d6545a
commit 4918397165

View File

@ -4818,7 +4818,7 @@ documentNeedsSecurityCheck(JSContext *cx, nsIXPConnectWrappedNative *wrapper)
#ifdef DEBUG
{
JSClass *clazz = JS_GET_CLASS(cx, ::JS_GetGlobalObject(cx));
JSClass *clazz = JS_GET_CLASS(cx, wrapper_obj);
NS_ASSERTION(clazz && clazz->flags & JSCLASS_HAS_PRIVATE &&
clazz->flags & JSCLASS_PRIVATE_IS_NSISUPPORTS,