* add transform-class-properties to stage 3, set spec mode to default * update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
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);
|
|
}
|
|
}
|