Skip to content

Commit

Permalink
fix(macro): add shouldUpdate guards
Browse files Browse the repository at this point in the history
shouldUpdate should check for a deleted output, since that would
invalidate a getMTime() call.
  • Loading branch information
floryst committed Jul 13, 2021
1 parent 7994a39 commit 8a2a2d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/macro.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,11 @@ export function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
if (!model.output[count]) {
return true;
}

if (model.output[count].isDeleted()) {
return true;
}

const mt = model.output[count].getMTime();
if (mt < localMTime) {
return true;
Expand Down

0 comments on commit 8a2a2d8

Please sign in to comment.