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

@@ -934,6 +934,21 @@ drop_unused_call: {
node_version: ">=4"
}
instanceof_lambda: {
options = {
evaluate: true,
side_effects: true,
}
input: {
console.log(42 instanceof function*() {});
}
expect: {
console.log(false);
}
expect_stdout: "false"
node_version: ">=4"
}
issue_4454_1: {
rename = false
options = {