fix unsafe evaluate of AST_Function (#2920)

fixes #2919
This commit is contained in:
Alex Lam S.L
2018-02-16 17:21:46 +08:00
committed by GitHub
parent a3dfeea144
commit a2a9459684
3 changed files with 45 additions and 5 deletions

View File

@@ -1489,3 +1489,16 @@ issue_2916_2: {
}
expect_stdout: "PASS"
}
issue_2919: {
options = {
evaluate: true,
unsafe: true,
}
input: {
console.log([ function() {} ].toString());
}
expect: {
console.log("function(){}");
}
}