From 7e13b241e0e25b723ef126c56c090027fe5c8a6a Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Thu, 15 Jan 2009 16:34:55 -0800 Subject: [PATCH] Bug 472794 - Deal with XPCNativeWrapper.prototype properly. r+sr=jst --- js/src/xpconnect/src/xpcquickstubs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/xpconnect/src/xpcquickstubs.cpp b/js/src/xpconnect/src/xpcquickstubs.cpp index d05c4d2a82a8..79895272e7a3 100644 --- a/js/src/xpconnect/src/xpcquickstubs.cpp +++ b/js/src/xpconnect/src/xpcquickstubs.cpp @@ -536,7 +536,8 @@ xpc_qsUnwrapThisImpl(JSContext *cx, else if(XPCNativeWrapper::IsNativeWrapperClass(clazz)) { wrapper = XPCNativeWrapper::GetWrappedNative(cur); - NS_ASSERTION(wrapper, "XPCNativeWrapper wrapping nothing"); + if(!wrapper) + goto next; } else if(IsXPCSafeJSObjectWrapperClass(clazz)) {