@@ -68,7 +68,7 @@ public function testDefines()
68
68
/**
69
69
* Copyright
70
70
*/
71
- "undefined"==typeof FOO&&(FOO=1),function() {new Array(FOO,2,3,4);var bar=Array(a,b,c),var2=(new Array(5),new Array(a));function bar(foo){var2.push(foo)}bar("abc123")}();
71
+ "undefined"==typeof FOO&&(FOO=1),(()=> {new Array(FOO,2,3,4);var bar=Array(a,b,c),var2=(new Array(5),new Array(a));function bar(foo){var2.push(foo)}bar("abc123")}) ();
72
72
JS ;
73
73
$ this ->assertEquals ($ expected , $ this ->asset ->getContent ());
74
74
}
@@ -83,7 +83,7 @@ public function testMutipleDefines()
83
83
/**
84
84
* Copyright
85
85
*/
86
- !function() {new Array(2,2,3,4);var bar=Array(a,b,c),var2=(new Array(5),new Array(a));function bar(foo){var2.push(foo)}bar("abc123")}();
86
+ (()=> {new Array(2,2,3,4);var bar=Array(a,b,c),var2=(new Array(5),new Array(a));function bar(foo){var2.push(foo)}bar("abc123")}) ();
87
87
JS ;
88
88
$ this ->assertEquals ($ expected , $ this ->asset ->getContent ());
89
89
}
@@ -98,7 +98,7 @@ public function testUnsafeUglify()
98
98
/**
99
99
* Copyright
100
100
*/
101
- "undefined"==typeof DEBUG&&(DEBUG=!0),"undefined"==typeof FOO&&(FOO=1),function() {FOO;var bar=[a,b,c],var2=Array(a);function bar(foo){var2.push(foo)}DEBUG&&console.log("hellow world"),bar("abc123")}();
101
+ "undefined"==typeof DEBUG&&(DEBUG=!0),"undefined"==typeof FOO&&(FOO=1),(()=> {FOO;var bar=[a,b,c],var2=Array(a);function bar(foo){var2.push(foo)}DEBUG&&console.log("hellow world"),bar("abc123")}) ();
102
102
JS ;
103
103
$ this ->assertEquals ($ expected , $ this ->asset ->getContent ());
104
104
}
0 commit comments