suppress unsafe_proto for LHS expressions (#2804)

This commit is contained in:
Alex Lam S.L
2018-01-17 20:41:51 +08:00
committed by GitHub
parent cff3bf4914
commit d3ce2bc9e7
2 changed files with 20 additions and 1 deletions

View File

@@ -583,6 +583,25 @@ native_prototype: {
}
}
native_prototype_lhs: {
options = {
unsafe_proto: true,
}
input: {
console.log(function() {
Function.prototype.bar = "PASS";
return function() {};
}().bar);
}
expect: {
console.log(function() {
Function.prototype.bar = "PASS";
return function() {};
}().bar);
}
expect_stdout: "PASS"
}
accessor_boolean: {
input: {
var a = 1;