Bug 589216 - TM: fix another crossCompartment call in jsapi-tests r=jorendorff

This commit is contained in:
Gregor Wagner 2010-08-20 17:23:47 -07:00
parent 376a6f85f4
commit 562f617316

View File

@ -68,6 +68,8 @@ BEGIN_TEST(testContexts_bug561444)
JS_BeginRequest(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()))
return;
}