mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 326223 JS_PARANOID_REQUEST dies in spidermonkey (JS_NewContext)
r=brendan
This commit is contained in:
parent
77a7ffbc90
commit
c0e04c1600
@ -172,13 +172,13 @@ js_NewContext(JSRuntime *rt, size_t stackChunkSize)
|
|||||||
ok = js_InitRuntimeNumberState(cx);
|
ok = js_InitRuntimeNumberState(cx);
|
||||||
if (ok)
|
if (ok)
|
||||||
ok = js_InitRuntimeStringState(cx);
|
ok = js_InitRuntimeStringState(cx);
|
||||||
|
#ifdef JS_THREADSAFE
|
||||||
|
JS_EndRequest(cx);
|
||||||
|
#endif
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
js_DestroyContext(cx, JS_NO_GC);
|
js_DestroyContext(cx, JS_NO_GC);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#ifdef JS_THREADSAFE
|
|
||||||
JS_EndRequest(cx);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
JS_LOCK_GC(rt);
|
JS_LOCK_GC(rt);
|
||||||
rt->state = JSRTS_UP;
|
rt->state = JSRTS_UP;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user