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

11 lines
177 B
JavaScript

// @target: es5,esnext
const a = "a";
const b = "b";
const { [a]: aVal , [b]: bVal } = (()=>{
return {
[a]: 1,
[b]: 1
};
})();
console.log(aVal, bVal);