aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/directives.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/compress/directives.js b/test/compress/directives.js
index 590d1623..69ecfdc4 100644
--- a/test/compress/directives.js
+++ b/test/compress/directives.js
@@ -93,3 +93,41 @@ issue_3166: {
}
}
}
+
+valid_after_invalid_1: {
+ input: {
+ console.log(typeof function() {
+ "use\x20strict";
+ "use strict";
+ return this;
+ }());
+ }
+ expect: {
+ console.log(typeof function() {
+ "use\x20strict";
+ "use strict";
+ return this;
+ }());
+ }
+ expect_stdout: "undefined"
+}
+
+valid_after_invalid_2: {
+ options = {
+ directives: true,
+ }
+ input: {
+ console.log(typeof function() {
+ "use\x20strict";
+ "use strict";
+ return this;
+ }());
+ }
+ expect: {
+ console.log(typeof function() {
+ "use strict";
+ return this;
+ }());
+ }
+ expect_stdout: "undefined"
+}