From 649ff418b55f6c4e66dba591563ca52b2106ded1 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 16 Sep 2004 18:30:04 +0000 Subject: [PATCH] Pass aShared=PR_TRUE when compiling brutally shared methods and properties. Bug 258832, r+sr=brendan git-svn-id: svn://10.0.0.236/trunk@162467 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xbl/src/nsXBLProtoImplMethod.cpp | 2 +- mozilla/content/xbl/src/nsXBLProtoImplProperty.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/content/xbl/src/nsXBLProtoImplMethod.cpp b/mozilla/content/xbl/src/nsXBLProtoImplMethod.cpp index 190a8fdf362..e52b79726aa 100644 --- a/mozilla/content/xbl/src/nsXBLProtoImplMethod.cpp +++ b/mozilla/content/xbl/src/nsXBLProtoImplMethod.cpp @@ -203,7 +203,7 @@ nsXBLProtoImplMethod::CompileMember(nsIScriptContext* aContext, const nsCString& body, functionUri.get(), mUncompiledMethod->mBodyText.GetLineNumber(), - PR_FALSE, + PR_TRUE, (void **) &methodObject); // Destroy our uncompiled method and delete our arg list. diff --git a/mozilla/content/xbl/src/nsXBLProtoImplProperty.cpp b/mozilla/content/xbl/src/nsXBLProtoImplProperty.cpp index 168e082e32f..87c9916f32d 100644 --- a/mozilla/content/xbl/src/nsXBLProtoImplProperty.cpp +++ b/mozilla/content/xbl/src/nsXBLProtoImplProperty.cpp @@ -215,7 +215,7 @@ nsXBLProtoImplProperty::CompileMember(nsIScriptContext* aContext, const nsCStrin getter, functionUri.get(), mGetterText->GetLineNumber(), - PR_FALSE, + PR_TRUE, (void **) &getterObject); // Make sure we free mGetterText here before setting mJSGetterObject, since @@ -262,7 +262,7 @@ nsXBLProtoImplProperty::CompileMember(nsIScriptContext* aContext, const nsCStrin setter, functionUri.get(), mSetterText->GetLineNumber(), - PR_FALSE, + PR_TRUE, (void **) &setterObject); // Make sure we free mSetterText here before setting mJSGetterObject, since