swc/crates/swc_ecma_codegen/tests/fixture/issue-6589/js/input.js

15 lines
191 B
JavaScript

export function func({a, b, ...rest}) {
console.log(a,b, rest)
}
const other = { unknow: "foo" }
let foo = {
...other,
bar: "baz"
};
let bar = {
bar: "baz",
...other
};