зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1083648 followup to fix orange on CLOSED TREE due to random XBL stuff getting defined as props on the global. r=bholley pending
This commit is contained in:
Родитель
87347c238d
Коммит
c6a727017c
|
@ -194,7 +194,8 @@ nsXBLProtoImplMethod::CompileMember(AutoJSAPI& jsapi, const nsCString& aClassStr
|
|||
JS::CompileOptions options(cx);
|
||||
options.setFileAndLine(functionUri.get(),
|
||||
uncompiledMethod->mBodyText.GetLineNumber())
|
||||
.setVersion(JSVERSION_LATEST);
|
||||
.setVersion(JSVERSION_LATEST)
|
||||
.setDefineOnScope(false);
|
||||
JS::Rooted<JSObject*> methodObject(cx);
|
||||
JS::AutoObjectVector emptyVector(cx);
|
||||
nsresult rv = nsJSUtils::CompileFunction(jsapi, emptyVector, options, cname,
|
||||
|
|
|
@ -192,7 +192,8 @@ nsXBLProtoImplProperty::CompileMember(AutoJSAPI& jsapi, const nsCString& aClassS
|
|||
JSAutoCompartment ac(cx, aClassObject);
|
||||
JS::CompileOptions options(cx);
|
||||
options.setFileAndLine(functionUri.get(), getterText->GetLineNumber())
|
||||
.setVersion(JSVERSION_LATEST);
|
||||
.setVersion(JSVERSION_LATEST)
|
||||
.setDefineOnScope(false);
|
||||
nsCString name = NS_LITERAL_CSTRING("get_") + NS_ConvertUTF16toUTF8(mName);
|
||||
JS::Rooted<JSObject*> getterObject(cx);
|
||||
JS::AutoObjectVector emptyVector(cx);
|
||||
|
@ -238,7 +239,8 @@ nsXBLProtoImplProperty::CompileMember(AutoJSAPI& jsapi, const nsCString& aClassS
|
|||
JSAutoCompartment ac(cx, aClassObject);
|
||||
JS::CompileOptions options(cx);
|
||||
options.setFileAndLine(functionUri.get(), setterText->GetLineNumber())
|
||||
.setVersion(JSVERSION_LATEST);
|
||||
.setVersion(JSVERSION_LATEST)
|
||||
.setDefineOnScope(false);
|
||||
nsCString name = NS_LITERAL_CSTRING("set_") + NS_ConvertUTF16toUTF8(mName);
|
||||
JS::Rooted<JSObject*> setterObject(cx);
|
||||
JS::AutoObjectVector emptyVector(cx);
|
||||
|
|
|
@ -370,7 +370,8 @@ nsXBLPrototypeHandler::EnsureEventHandler(AutoJSAPI& jsapi, nsIAtom* aName,
|
|||
JSAutoCompartment ac(cx, scopeObject);
|
||||
JS::CompileOptions options(cx);
|
||||
options.setFileAndLine(bindingURI.get(), mLineNumber)
|
||||
.setVersion(JSVERSION_LATEST);
|
||||
.setVersion(JSVERSION_LATEST)
|
||||
.setDefineOnScope(false);
|
||||
|
||||
JS::Rooted<JSObject*> handlerFun(cx);
|
||||
JS::AutoObjectVector emptyVector(cx);
|
||||
|
|
Загрузка…
Ссылка в новой задаче