chore: lint
This commit is contained in:
@@ -315,6 +315,7 @@ export default class Interpreter extends EventEmitter {
|
|||||||
}
|
}
|
||||||
}, pages ?? 1);
|
}, pages ?? 1);
|
||||||
},
|
},
|
||||||
|
|
||||||
script: async (code: string) => {
|
script: async (code: string) => {
|
||||||
const AsyncFunction: FunctionConstructor = Object.getPrototypeOf(
|
const AsyncFunction: FunctionConstructor = Object.getPrototypeOf(
|
||||||
async () => { },
|
async () => { },
|
||||||
@@ -322,6 +323,7 @@ export default class Interpreter extends EventEmitter {
|
|||||||
const x = new AsyncFunction('page', 'log', code);
|
const x = new AsyncFunction('page', 'log', code);
|
||||||
await x(page, this.log);
|
await x(page, this.log);
|
||||||
},
|
},
|
||||||
|
|
||||||
flag: async () => new Promise((res) => {
|
flag: async () => new Promise((res) => {
|
||||||
this.emit('flag', page, res);
|
this.emit('flag', page, res);
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user