(runtime: IRuntime)
| 53 | } |
| 54 | |
| 55 | setRuntime(runtime: IRuntime) { |
| 56 | if (this.isValidRuntime(runtime)) { |
| 57 | this.runtime = runtime; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | isValidRuntime(runtime: IRuntime) { |
| 62 | if (typeof runtime !== 'object' || Array.isArray(runtime)) { |
no test coverage detected