Fix bytecode generation of binary expressions. Fix bytecode generation of query operator. Fix tests.

This commit is contained in:
Ilmir Usmanov
2014-10-15 20:08:38 +04:00
parent aaadfec530
commit e1e7752a62
8 changed files with 35 additions and 24 deletions
@@ -13,4 +13,4 @@
// limitations under the License.
var x = 0;
assert(x - (x = 1) !== -1)
assert(x - (x = 1) === -1)
+2 -2
View File
@@ -19,9 +19,9 @@ function test()
throw "error";
}
} catch (e) {
return 0;
return 1;
}
return 1;
return 0;
}
assert(test());
+2 -2
View File
@@ -30,9 +30,9 @@ function test()
try {
a();
} catch (e) {
return 0;
return 1;
}
return 1;
return 0;
}
assert(test());
+1 -2
View File
@@ -18,7 +18,6 @@ try {
} catch (e) {
throw e;
}
assert(false);
} catch (e) {
}
assert(false);
+3 -3
View File
@@ -17,10 +17,10 @@ function test()
try {
var x = 1;
} catch (e) {
return 1;
return 0;
}
return 0;
return 1;
}
assert(test());
assert(test());
+3 -3
View File
@@ -17,11 +17,11 @@ function test()
try {
throw "error";
} catch (e) {
return 0;
return 1;
} finally {
}
return 1;
return 0;
}
assert(test());
assert(test());
+3 -3
View File
@@ -17,10 +17,10 @@ function test()
try {
var x = 1;
} finally {
return 0;
return 1;
}
return 1;
return 0;
}
assert(test());
assert(test());