fix corner cases with instanceof (#5509)

- enhance `evaluate`
This commit is contained in:
Alex Lam S.L
2022-06-12 03:01:54 +01:00
committed by GitHub
parent 99946a3993
commit 139fad0c05
10 changed files with 167 additions and 25 deletions

View File

@@ -907,6 +907,20 @@ chained_side_effects: {
]
}
instanceof_lambda: {
options = {
evaluate: true,
side_effects: true,
}
input: {
console.log(42 instanceof function() {});
}
expect: {
console.log(false);
}
expect_stdout: "false"
}
issue_1649: {
options = {
evaluate: true,