Parse and compress destructuring VarDefs
This commit is contained in:
committed by
Richard van Velzen
parent
824ecfb8a2
commit
c44c2d6c21
19
test/compress/destructuring.js
Normal file
19
test/compress/destructuring.js
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
destructuring_arrays: {
|
||||
input: {
|
||||
var [aa, bb] = cc;
|
||||
}
|
||||
expect: {
|
||||
var[aa,bb]=cc;
|
||||
}
|
||||
}
|
||||
|
||||
destructuring_objects: {
|
||||
input: {
|
||||
var {aa, bb} = {aa:1, bb:2};
|
||||
}
|
||||
expect: {
|
||||
var{aa,bb}={aa:1,bb:2};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user