fix cascade of evaluate optimisation (#1654)
Operator has changed, so break out from rest of the rules. fixes #1649
This commit is contained in:
@@ -789,3 +789,16 @@ unsafe_charAt_noop: {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
issue_1649: {
|
||||
options = {
|
||||
evaluate: true,
|
||||
}
|
||||
input: {
|
||||
console.log(-1 + -1);
|
||||
}
|
||||
expect: {
|
||||
console.log(-2);
|
||||
}
|
||||
expect_stdout: "-2";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user