Fix 'switch' bytecode generation. Remove __strtof. Fix opcodes pretty-printing.

This commit is contained in:
Ilmir Usmanov
2014-10-16 15:33:54 +04:00
parent 8a58e0b9d5
commit 16556eb830
7 changed files with 132 additions and 115 deletions
+15
View File
@@ -47,3 +47,18 @@ switch (a) {
case 3:
assert (0);
}
var counter = 0;
switch ("var") {
case "var":
counter++;
case "var1":
counter++;
case "var2":
counter++;
default:
counter++;
}
assert (counter === 4);