mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 951407 - Fix two hazards introduced by bug 951282; r=sfink
This commit is contained in:
parent
5a1403e62a
commit
96e3d97817
@ -2153,7 +2153,7 @@ 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);
|
||||
|
@ -485,8 +485,8 @@ jsd_ValToStringInStackFrame(JSDContext* jsdc,
|
||||
cx = jsdthreadstate->context;
|
||||
JS_ASSERT(cx);
|
||||
|
||||
exceptionState = JS_SaveExceptionState(cx);
|
||||
JS::RootedValue v(cx, val);
|
||||
exceptionState = JS_SaveExceptionState(cx);
|
||||
retval = JS::ToString(cx, v);
|
||||
JS_RestoreExceptionState(cx, exceptionState);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user