mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
10 lines
306 B
TypeScript
10 lines
306 B
TypeScript
|
// @target: es5
|
||
|
// @lib: esnext, dom
|
||
|
// @downlevelIteration: true
|
||
|
// https://github.com/Microsoft/TypeScript/issues/24722
|
||
|
class A {
|
||
|
b = async (...args: any[]) => {
|
||
|
await Promise.resolve();
|
||
|
const obj = { ["a"]: () => this }; // computed property name after `await` triggers case
|
||
|
};
|
||
|
}
|