Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
block(path: Path, template: number, inverse: number) {
let params = this.popValue();
let hash = this.popValue();
let blocks = this.template.block.blocks;
assert(typeof template !== 'number' || blocks[template] !== null, 'missing block in the compiler');
assert(typeof inverse !== 'number' || blocks[inverse] !== null, 'missing block in the compiler');
this.push([Ops.Block, path, params, hash, blocks[template], blocks[inverse]]);
}