mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
12 lines
229 B
JavaScript
12 lines
229 B
JavaScript
// @target: es5
|
|
var foo = {
|
|
foo: 1,
|
|
bar: 2
|
|
};
|
|
var bar;
|
|
var ref;
|
|
// reassignment in destructuring pattern
|
|
(ref = foo, foo = ref.foo, bar = ref.bar, ref);
|
|
// reassignment in subsequent var
|
|
var foo = foo.foo, baz = foo.baz;
|