Skip to content

Commit

Permalink
Don't fail on missing nets.
Browse files Browse the repository at this point in the history
Fixes #4.
  • Loading branch information
mithro committed Dec 20, 2017
1 parent 58ff5fa commit 5e7c69c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@ function createWires(module)
n.outputPorts.forEach(function (port) {
port.parentNode = n;
var riders = nets[arrayToBitstring(port.value)];
if (riders === undefined) {
return;
}
var wire = {'drivers': [port], 'riders': riders};
wires.push(wire);
port.wire = wire;
Expand Down

0 comments on commit 5e7c69c

Please sign in to comment.