(type, count, names)
| 1295 | } |
| 1296 | |
| 1297 | addLocals(type, count, names) { |
| 1298 | this.locals.push({type: type, count: count}); |
| 1299 | names = names || []; |
| 1300 | if (names.length > count) throw new Error('too many locals names given'); |
| 1301 | this.local_names.push(...names); |
| 1302 | if (count > names.length) this.local_names.push(count - names.length); |
| 1303 | return this; |
| 1304 | } |
| 1305 | |
| 1306 | end() { |
| 1307 | return this.module; |
no test coverage detected