swc/ecmascript/minifier/tests/terser/compress/harmony/issue_2349/output.js

6 lines
140 B
JavaScript
Raw Normal View History

function foo(o, n) {
const t = o.get();
return t.map(({ [n]: o }) => o);
}
console.log(foo({ get: () => [{ blah: 42 }] }, "blah"));