fix corner case in evaluate (#4800)

fixes #4799
This commit is contained in:
Alex Lam S.L
2021-03-18 03:31:20 +00:00
committed by GitHub
parent 48c46fa9a7
commit 2508481e33
2 changed files with 30 additions and 13 deletions

View File

@@ -5851,6 +5851,24 @@ new_target_collapse_vars: {
node_version: ">=6"
}
new_target_delete: {
options = {
evaluate: true,
}
input: {
new function() {
console.log(delete new.target);
}();
}
expect: {
new function() {
console.log(delete new.target);
}();
}
expect_stdout: true
node_version: ">=6"
}
new_target_reduce_vars: {
options = {
evaluate: true,