* Desugar class properties to Object.defineProperty per spec * Define uninitialized static class properties with value=undefined * Make class-properties increased spec compliance opt-in (spec: true)
18 lines
252 B
JavaScript
18 lines
252 B
JavaScript
class MyClass {
|
|
myAsyncMethod = async () => {
|
|
console.log(this);
|
|
}
|
|
}
|
|
|
|
(class MyClass2 {
|
|
myAsyncMethod = async () => {
|
|
console.log(this);
|
|
}
|
|
})
|
|
|
|
export default class MyClass3 {
|
|
myAsyncMethod = async () => {
|
|
console.log(this);
|
|
}
|
|
}
|