improve unused on built-in functions (#2817)

This commit is contained in:
Alex Lam S.L
2018-01-19 20:41:57 +08:00
committed by GitHub
parent e21bab7ce6
commit 3e7873217c
4 changed files with 205 additions and 87 deletions

View File

@@ -862,3 +862,20 @@ issue_2749: {
}
expect_stdout: "PASS"
}
unsafe_builtin: {
options = {
side_effects: true,
unsafe: true,
}
input: {
(!w).constructor(x);
Math.abs(y);
[ 1, 2, z ].valueOf();
}
expect: {
w, x;
y;
z;
}
}