зеркало из https://github.com/mozilla/gecko-dev.git
Bug 983620 - Remove the unused aScope argument from WrapGlobalObject. r=bz.
This commit is contained in:
Родитель
0d26c9750b
Коммит
9950668d75
|
@ -2492,7 +2492,6 @@ class CGWrapGlobalMethod(CGAbstractMethod):
|
|||
def __init__(self, descriptor, properties):
|
||||
assert descriptor.interface.hasInterfacePrototypeObject()
|
||||
args = [Argument('JSContext*', 'aCx'),
|
||||
Argument('JS::Handle<JSObject*>', 'aScope'),
|
||||
Argument(descriptor.nativeType + '*', 'aObject'),
|
||||
Argument('nsWrapperCache*', 'aCache'),
|
||||
Argument('JS::CompartmentOptions&', 'aOptions'),
|
||||
|
|
|
@ -299,8 +299,8 @@ DedicatedWorkerGlobalScope::WrapGlobalObject(JSContext* aCx)
|
|||
// We're wrapping the global, so the scope is undefined.
|
||||
JS::Rooted<JSObject*> scope(aCx);
|
||||
|
||||
return DedicatedWorkerGlobalScopeBinding_workers::Wrap(aCx, scope, this,
|
||||
this, options,
|
||||
return DedicatedWorkerGlobalScopeBinding_workers::Wrap(aCx, this, this,
|
||||
options,
|
||||
GetWorkerPrincipal());
|
||||
}
|
||||
|
||||
|
@ -340,8 +340,7 @@ SharedWorkerGlobalScope::WrapGlobalObject(JSContext* aCx)
|
|||
// We're wrapping the global, so the scope is undefined.
|
||||
JS::Rooted<JSObject*> scope(aCx);
|
||||
|
||||
return SharedWorkerGlobalScopeBinding_workers::Wrap(aCx, scope, this, this,
|
||||
options,
|
||||
return SharedWorkerGlobalScopeBinding_workers::Wrap(aCx, this, this, options,
|
||||
GetWorkerPrincipal());
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче