From a84168233cd9b7b14cac6b9e3353f32e2cf55c0c Mon Sep 17 00:00:00 2001 From: Peter Van der Beken Date: Tue, 23 Jun 2009 16:46:11 +0200 Subject: [PATCH] Backed out c8297c309ab3 (Fix for bug 499777 (Cannot convert WrappedNative to function (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)). r/sr=mrbkap.) to fix orange. --- dom/base/nsDOMClassInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/nsDOMClassInfo.cpp b/dom/base/nsDOMClassInfo.cpp index 3850a2141e62..62e3085f13bb 100644 --- a/dom/base/nsDOMClassInfo.cpp +++ b/dom/base/nsDOMClassInfo.cpp @@ -5245,7 +5245,7 @@ public: ::JS_DefineUCProperty(cx, target, reinterpret_cast(mClassName), nsCRT::strlen(mClassName), thisAsVal, nsnull, - nsnull, 0); + nsnull, JSPROP_PERMANENT); sDoSecurityCheckInAddProperty = doSecurityCheckInAddProperty; return ok ? NS_OK : NS_ERROR_UNEXPECTED;