1.1 --- a/vm/src/main/java/org/apidesign/vm4brwsr/ByteCodeToJavaScript.java Sat Nov 17 11:21:17 2012 +0100
1.2 +++ b/vm/src/main/java/org/apidesign/vm4brwsr/ByteCodeToJavaScript.java Sat Nov 17 16:15:10 2012 +0100
1.3 @@ -497,14 +497,14 @@
1.4 }
1.5 case opc_ifnonnull: {
1.6 int indx = i + readIntArg(byteCodes, i);
1.7 - out.append("if (stack.pop()) { gt = " + indx);
1.8 + out.append("if (stack.pop() !== null) { gt = " + indx);
1.9 out.append("; continue; }");
1.10 i += 2;
1.11 break;
1.12 }
1.13 case opc_ifnull: {
1.14 int indx = i + readIntArg(byteCodes, i);
1.15 - out.append("if (!stack.pop()) { gt = " + indx);
1.16 + out.append("if (stack.pop() === null) { gt = " + indx);
1.17 out.append("; continue; }");
1.18 i += 2;
1.19 break;