mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
11 lines
188 B
JavaScript
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;
|