(script?: Ast.Node[])
| 105 | |
| 106 | @autobind |
| 107 | public async exec(script?: Ast.Node[]): Promise<void> { |
| 108 | if (script == null || script.length === 0) return; |
| 109 | try { |
| 110 | await this.collectNs(script); |
| 111 | const result = await this._run(script, this.scope, []); |
| 112 | assertValue(result); |
| 113 | this.log('end', { val: result }); |
| 114 | } catch (e) { |
| 115 | this.handleError(e); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | @autobind |
| 120 | public execSync(script?: Ast.Node[]): Value | undefined { |
no test coverage detected