From e42809d079e06e9cda35f908d0d75628b07fa362 Mon Sep 17 00:00:00 2001 From: "brendan@mozilla.org" Date: Sat, 26 Jan 2008 23:58:06 -0800 Subject: [PATCH] Fix #if-related bug that broken compilation of pre-1.7 versions (bug 412894, r=timeless). --- js/src/jsemit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsemit.c b/js/src/jsemit.c index 22bcce69f31..2978dd42e8c 100644 --- a/js/src/jsemit.c +++ b/js/src/jsemit.c @@ -4537,13 +4537,13 @@ js_EmitTree(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn) } } else { op = JSOP_POP; - if (!pn2->pn_kid1) { + pn3 = pn2->pn_kid1; + if (!pn3) { /* No initializer: emit an annotated nop for the decompiler. */ op = JSOP_NOP; } else { cg->treeContext.flags |= TCF_IN_FOR_INIT; #if JS_HAS_DESTRUCTURING - pn3 = pn2->pn_kid1; if (pn3->pn_type == TOK_ASSIGN && !MaybeEmitGroupAssignment(cx, cg, op, pn3, &op)) { return JS_FALSE;