Fix for bug 499777 (Cannot convert WrappedNative to function (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)). r/sr=mrbkap.

--HG--
extra : rebase_source : f0d4931f34bd48952712ffeb6cc8d25dad592e18
This commit is contained in:
Peter Van der Beken 2009-06-23 12:09:13 +02:00
parent 3c3858b23e
commit 76d16e0bde

View File

@ -5245,7 +5245,7 @@ public:
::JS_DefineUCProperty(cx, target,
reinterpret_cast<const jschar *>(mClassName),
nsCRT::strlen(mClassName), thisAsVal, nsnull,
nsnull, JSPROP_PERMANENT);
nsnull, 0);
sDoSecurityCheckInAddProperty = doSecurityCheckInAddProperty;
return ok ? NS_OK : NS_ERROR_UNEXPECTED;