fixed bug 516 (decrement nullpointerexception)
authortupshin <tupshin@tupshin.com>
Sun, 4 Apr 2004 09:05:30 +0000 (09:05 +0000)
committertupshin <tupshin@tupshin.com>
Sun, 4 Apr 2004 09:05:30 +0000 (09:05 +0000)
darcs-hash:20040404090530-a9258-44b6e2e6b3d5584ba4cebde5a58bbfea52e07949.gz

src/org/ibex/js/Parser.java

index a4621db..aad793e 100644 (file)
@@ -408,7 +408,7 @@ class Parser extends Lexer implements ByteCodes {
             b.add(parserLine, SWAP, null);
             b.add(parserLine, POP, null);
             b.add(parserLine, LITERAL, JS.N(1));
-            b.add(parserLine, tok == INC ? SUB : ADD, null);   // undo what we just did, since this is postfix
+            b.add(parserLine, tok == INC ? SUB : ADD, JS.N(2));   // undo what we just did, since this is postfix
             break;
         }
         case ASSIGN: {