mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 983620 - Remove the unused aScope argument from WrapGlobalObject. r=bz.
This commit is contained in:
parent
e1aaa947c3
commit
1a8d82a129
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user