mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +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);
|