You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let foo, bar;
({foo, bar} = {foo: 42, bar: true});
becomes:
let foo,bar;({foo,bar})={foo:42,bar:!0}
Expected:
let foo,bar;({foo,bar}={foo:42,bar:!0})
Notice how the closing parenthesis (which are required here in javascript, since it's not declaring and initializing the variable inline) were shifted from enclosing the whole assignment, to just enclosing the left-hand side of the destructuring expression (which is wrong). The expected minified code is:
let foo,bar;({foo,bar}={foo:42,bar:!0})
Nevertheless the following minifies correctly:
const {foo, bar} = {foo: 42, bar: true};
Becomes:
const{foo,bar}={foo:42,bar:!0}
The text was updated successfully, but these errors were encountered:
The following code:
becomes:
Expected:
Notice how the closing parenthesis (which are required here in javascript, since it's not declaring and initializing the variable inline) were shifted from enclosing the whole assignment, to just enclosing the left-hand side of the destructuring expression (which is wrong). The expected minified code is:
Nevertheless the following minifies correctly:
Becomes:
The text was updated successfully, but these errors were encountered: