Undo critical part of last change to try to fix crashing testerboxes.

This commit is contained in:
brendan%mozilla.org 2003-07-28 18:30:12 +00:00
Родитель 45de4c26a7
Коммит ab61333253
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) +