mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 589216 - TM: fix another crossCompartment call in jsapi-tests r=jorendorff
This commit is contained in:
parent
376a6f85f4
commit
562f617316
@ -68,6 +68,8 @@ BEGIN_TEST(testContexts_bug561444)
|
|||||||
JS_BeginRequest(cx);
|
JS_BeginRequest(cx);
|
||||||
{
|
{
|
||||||
jsvalRoot v(cx);
|
jsvalRoot v(cx);
|
||||||
|
JSAutoCrossCompartmentCall crossCall;
|
||||||
|
crossCall.enter(cx, d->obj);
|
||||||
if (!JS_EvaluateScript(cx, d->obj, d->code, strlen(d->code), __FILE__, __LINE__, v.addr()))
|
if (!JS_EvaluateScript(cx, d->obj, d->code, strlen(d->code), __FILE__, __LINE__, v.addr()))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user