()
| 809 | } |
| 810 | |
| 811 | checkOutput() { |
| 812 | if (!this.output || !utils.isArray(this.output)) throw new Error('kernel.output not an array'); |
| 813 | if (this.output.length < 1) throw new Error('kernel.output is empty, needs at least 1 value'); |
| 814 | for (let i = 0; i < this.output.length; i++) { |
| 815 | if (isNaN(this.output[i]) || this.output[i] < 1) { |
| 816 | throw new Error(`${ this.constructor.name }.output[${ i }] incorrectly defined as \`${ this.output[i] }\`, needs to be numeric, and greater than 0`); |
| 817 | } |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | /** |
| 822 | * |
no outgoing calls
no test coverage detected