mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
34 lines
477 B
JavaScript
34 lines
477 B
JavaScript
class Test{
|
|
static async method1() {
|
|
console.log(this);
|
|
|
|
setTimeout(async () => {
|
|
console.log(this);
|
|
});
|
|
}
|
|
|
|
static async method2() {
|
|
console.log(this);
|
|
|
|
setTimeout(async (arg) => {
|
|
console.log(this);
|
|
});
|
|
}
|
|
|
|
async method1() {
|
|
console.log(this);
|
|
|
|
setTimeout(async () => {
|
|
console.log(this);
|
|
});
|
|
}
|
|
|
|
async method2() {
|
|
console.log(this);
|
|
|
|
setTimeout(async (arg) => {
|
|
console.log(this);
|
|
});
|
|
}
|
|
}
|