2003/07/12 17:38:53
authorbrian <brian@xwt.org>
Fri, 30 Jan 2004 07:03:54 +0000 (07:03 +0000)
committerbrian <brian@xwt.org>
Fri, 30 Jan 2004 07:03:54 +0000 (07:03 +0000)
darcs-hash:20040130070354-aa32f-45e59b6d3a81e5b55d8530b59a10f4c5b465222d.gz

src/org/xwt/js/Parser.java

index 4abbdea..cf0fdec 100644 (file)
@@ -276,10 +276,8 @@ class Parser extends Lexer implements ByteCodes {
                 
             parseBlock(b2, null);                                   // the function body
 
-            if(b2.get(b2.size()-1) != RETURN) {
-                b2.add(parserLine, LITERAL, null);                        // in case we "fall out the bottom", return NULL
-                b2.add(parserLine, RETURN);
-            }
+            b2.add(parserLine, LITERAL, null);                        // in case we "fall out the bottom", return NULL
+            b2.add(parserLine, RETURN);
 
             break;
         }