Skip to content

Commit

Permalink
Fix crash on some construction order
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed May 25, 2021
1 parent 811974a commit 3568460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cells/io.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ export const Output = IO.define('Output', {
if (this.get('mode') != 0) return; // not inside a subcircuit

const subcir = this.graph.get('subcircuit');
if (subcir == true) return; // graph still under construction
console.assert(subcir != null);
subcir._setOutput(sigs.in, this.get('net'));
},
Expand Down

0 comments on commit 3568460

Please sign in to comment.