swc/tests/tsc-references/es6/destructuring/destructuringReassignsRightHandSide/input.ts/es2015.1.normal/output.js

11 lines
188 B
JavaScript

// @target: es5
var foo = {
foo: 1,
bar: 2
};
var bar;
// reassignment in destructuring pattern
({ foo , bar } = foo);
// reassignment in subsequent var
var { foo , baz } = foo;