mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940754 - Fix rooting hazard in WorkerPrivateParent::WrapObject() r=bent
This commit is contained in:
parent
cf6ff52940
commit
24477ef740
@ -2159,7 +2159,8 @@ WorkerPrivateParent<Derived>::WrapObject(JSContext* aCx,
|
||||
|
||||
AssertIsOnParentThread();
|
||||
|
||||
JSObject* obj = WorkerBinding::Wrap(aCx, aScope, ParentAsWorkerPrivate());
|
||||
JS::Rooted<JSObject*> obj(aCx, WorkerBinding::Wrap(aCx, aScope,
|
||||
ParentAsWorkerPrivate()));
|
||||
|
||||
if (mRooted) {
|
||||
PreserveWrapper(this);
|
||||
|
Loading…
Reference in New Issue
Block a user