evalcx uses JS_BeginRequest/JS_EndRequest. bug 398045, r=mrbkap, not a part of the build.
git-svn-id: svn://10.0.0.236/trunk@236946 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2372,6 +2372,9 @@ EvalInContext(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
#ifdef JS_THREADSAFE
|
||||
JS_BeginRequest(scx);
|
||||
#endif
|
||||
src = JS_GetStringChars(str);
|
||||
srclen = JS_GetStringLength(str);
|
||||
lazy = JS_FALSE;
|
||||
@@ -2406,6 +2409,9 @@ EvalInContext(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
||||
}
|
||||
|
||||
out:
|
||||
#ifdef JS_THREADSAFE
|
||||
JS_EndRequest(scx);
|
||||
#endif
|
||||
JS_DestroyContext(scx);
|
||||
return ok;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user