* Inject properties from an array of * of buffers and numbers. * @private * @param {Array} code * @returns {Script}
(code)
| 166 | */ |
| 167 | |
| 168 | fromArray(code) { |
| 169 | assert(Array.isArray(code)); |
| 170 | |
| 171 | this.clear(); |
| 172 | |
| 173 | for (const op of code) |
| 174 | this.push(op); |
| 175 | |
| 176 | return this.compile(); |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * Instantiate script from an array |
no test coverage detected