mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
10 lines
156 B
TypeScript
10 lines
156 B
TypeScript
// @target: es5,esnext
|
|
|
|
const a = "a";
|
|
const b = "b";
|
|
|
|
const { [a]: aVal, [b]: bVal } = (() => {
|
|
return { [a]: 1, [b]: 1 };
|
|
})();
|
|
console.log(aVal, bVal);
|