зеркало из https://github.com/mozilla/gecko-dev.git
Undo critical part of last change to try to fix crashing testerboxes.
This commit is contained in:
Родитель
45de4c26a7
Коммит
ab61333253
|
@ -989,8 +989,8 @@ js_NewScript(JSContext *cx, uint32 length, uint32 nsrcnotes, uint32 ntrynotes)
|
||||||
JSScript *script;
|
JSScript *script;
|
||||||
|
|
||||||
/* Round up source note count to align script->trynotes for its type. */
|
/* Round up source note count to align script->trynotes for its type. */
|
||||||
if (ntrynotes)
|
/* XXX only if ntrynotes != 0, but then tinderbox tests crash */
|
||||||
nsrcnotes += JSTRYNOTE_ALIGNMASK;
|
nsrcnotes += JSTRYNOTE_ALIGNMASK;
|
||||||
script = (JSScript *) JS_malloc(cx,
|
script = (JSScript *) JS_malloc(cx,
|
||||||
sizeof(JSScript) +
|
sizeof(JSScript) +
|
||||||
length * sizeof(jsbytecode) +
|
length * sizeof(jsbytecode) +
|
||||||
|
|
Загрузка…
Ссылка в новой задаче