Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cyclic dependencies causing an infinite loop.
Browse files Browse the repository at this point in the history
Tim Coulter authored and Tim Coulter committed Jul 5, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent dab9fff commit cf4ba0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/profiler.js
Original file line number Diff line number Diff line change
@@ -237,6 +237,10 @@ module.exports = {
var file = current[0];
var imported_from = current[1];

if (dependsGraph.hasNode(file)) {
return finished();
}

// Add the contract to the depend graph.
dependsGraph.setNode(file);

0 comments on commit cf4ba0f

Please sign in to comment.