From 2a34d78a3bb6fc938533ce647f7a3c4baa2f0ebc Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Tue, 15 Mar 2005 17:13:02 +0000 Subject: [PATCH] Fixing bug 286251: removal of double call to initFunction which was spotted by Gilles Barnier . --- js/rhino/src/org/mozilla/javascript/Parser.java | 1 - 1 file changed, 1 deletion(-) diff --git a/js/rhino/src/org/mozilla/javascript/Parser.java b/js/rhino/src/org/mozilla/javascript/Parser.java index 0ce2b3bc2faf..90532f83c93e 100644 --- a/js/rhino/src/org/mozilla/javascript/Parser.java +++ b/js/rhino/src/org/mozilla/javascript/Parser.java @@ -549,7 +549,6 @@ public class Parser Node pn = nf.initFunction(fnNode, functionIndex, body, syntheticType); if (memberExprNode != null) { - pn = nf.initFunction(fnNode, functionIndex, body, syntheticType); pn = nf.createAssignment(Token.ASSIGN, memberExprNode, pn); if (functionType != FunctionNode.FUNCTION_EXPRESSION) { // XXX check JScript behavior: should it be createExprStatement?