aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 6a9f2aed..a9ca23f8 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -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"
+}