workaround webkit parsing error (#2056)

apply `webkit` to jetstream tests
This commit is contained in:
Alex Lam S.L
2017-06-06 04:06:42 +08:00
committed by GitHub
parent 540220b91b
commit 27c5284d3d
4 changed files with 37 additions and 2 deletions

View File

@@ -267,3 +267,29 @@ issue_203: {
}
expect_stdout: "42"
}
no_webkit: {
beautify = {
webkit: false,
}
input: {
console.log(function() {
1 + 1;
}.a = 1);
}
expect_exact: "console.log(function(){1+1}.a=1);"
expect_stdout: "1"
}
webkit: {
beautify = {
webkit: true,
}
input: {
console.log(function() {
1 + 1;
}.a = 1);
}
expect_exact: "console.log((function(){1+1}).a=1);"
expect_stdout: "1"
}