From abac0ba1fee25bfdf10d76262f8f7001b2c13f91 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Mon, 28 Jul 2003 18:30:12 +0000 Subject: [PATCH] Undo critical part of last change to try to fix crashing testerboxes. --- js/src/jsscript.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsscript.c b/js/src/jsscript.c index d2b30140a44..adaaf14a3bf 100644 --- a/js/src/jsscript.c +++ b/js/src/jsscript.c @@ -989,8 +989,8 @@ js_NewScript(JSContext *cx, uint32 length, uint32 nsrcnotes, uint32 ntrynotes) JSScript *script; /* Round up source note count to align script->trynotes for its type. */ - if (ntrynotes) - nsrcnotes += JSTRYNOTE_ALIGNMASK; + /* XXX only if ntrynotes != 0, but then tinderbox tests crash */ + nsrcnotes += JSTRYNOTE_ALIGNMASK; script = (JSScript *) JS_malloc(cx, sizeof(JSScript) + length * sizeof(jsbytecode) +