Rearrange
This commit is contained in:
parent
78662a0d77
commit
ec7a816aeb
10
actor.ts
10
actor.ts
|
@ -130,13 +130,13 @@ export class Turn {
|
||||||
|
|
||||||
assert(ref: Ref, assertion: Assertion): Handle {
|
assert(ref: Ref, assertion: Assertion): Handle {
|
||||||
const h = nextHandle++;
|
const h = nextHandle++;
|
||||||
this.enqueue(ref.relay, t => {
|
const a = runRewrites(ref.attenuation, assertion);
|
||||||
const a = runRewrites(ref.attenuation, assertion);
|
if (a !== null) {
|
||||||
if (a !== null) {
|
this.enqueue(ref.relay, t => {
|
||||||
this.actor.outbound.set(h, ref);
|
this.actor.outbound.set(h, ref);
|
||||||
ref.target.assert?.(t, a, h);
|
ref.target.assert?.(t, a, h);
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue