aboutsummaryrefslogtreecommitdiff
path: root/test/compress/arrays.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/arrays.js')
-rw-r--r--test/compress/arrays.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/compress/arrays.js b/test/compress/arrays.js
new file mode 100644
index 00000000..10fe6eb5
--- /dev/null
+++ b/test/compress/arrays.js
@@ -0,0 +1,12 @@
+holes_and_undefined: {
+ input: {
+ x = [1, 2, undefined];
+ y = [1, , 2, ];
+ z = [1, undefined, 3];
+ }
+ expect: {
+ x=[1,2,void 0];
+ y=[1,,2];
+ z=[1,void 0,3];
+ }
+}