Allocate Facet fids for debugging

This commit is contained in:
Tony Garnock-Jones 2016-08-07 21:02:17 -04:00
parent 3977e57b38
commit 2c78d1ad0a
1 changed files with 2 additions and 0 deletions

View File

@ -136,8 +136,10 @@ function Facet(actor) {
this.parent = Facet.current;
this.fields = Dataflow.Graph.newScope((this.parent && this.parent.fields) || actor.fields);
this.terminated = false;
this.fid = Facet.nextFid++;
}
Facet.nextFid = 0;
Facet.current = null;
function withCurrentFacet(facet, f) {