Fix bytecode generation of binary expressions. Fix bytecode generation of query operator. Fix tests.
This commit is contained in:
@@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
var x = 0;
|
||||
assert(x - (x = 1) !== -1)
|
||||
assert(x - (x = 1) === -1)
|
||||
@@ -19,9 +19,9 @@ function test()
|
||||
throw "error";
|
||||
}
|
||||
} catch (e) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
assert(test());
|
||||
@@ -30,9 +30,9 @@ function test()
|
||||
try {
|
||||
a();
|
||||
} catch (e) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
assert(test());
|
||||
@@ -18,7 +18,6 @@ try {
|
||||
} catch (e) {
|
||||
throw e;
|
||||
}
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
assert(false);
|
||||
|
||||
@@ -17,10 +17,10 @@ function test()
|
||||
try {
|
||||
var x = 1;
|
||||
} catch (e) {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
assert(test());
|
||||
assert(test());
|
||||
|
||||
@@ -17,11 +17,11 @@ function test()
|
||||
try {
|
||||
throw "error";
|
||||
} catch (e) {
|
||||
return 0;
|
||||
return 1;
|
||||
} finally {
|
||||
}
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
assert(test());
|
||||
assert(test());
|
||||
|
||||
@@ -17,10 +17,10 @@ function test()
|
||||
try {
|
||||
var x = 1;
|
||||
} finally {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
assert(test());
|
||||
assert(test());
|
||||
|
||||
Reference in New Issue
Block a user