fix evaluate on object getter & setter (#1515)

This commit is contained in:
Alex Lam S.L
2017-03-01 02:03:47 +08:00
committed by GitHub
parent 320984c5f5
commit b34fa11a13
2 changed files with 36 additions and 5 deletions

View File

@@ -337,6 +337,32 @@ unsafe_object_repeated: {
}
}
unsafe_object_accessor: {
options = {
evaluate: true,
reduce_vars: true,
unsafe: true,
}
input: {
function f() {
var a = {
get b() {},
set b() {}
};
return {a:a};
}
}
expect: {
function f() {
var a = {
get b() {},
set b() {}
};
return {a:a};
}
}
}
unsafe_function: {
options = {
evaluate : true,