Use constructor instead of ad-hoc objects for various `Ref`s
This commit is contained in:
parent
90aa9656ca
commit
85b2299061
|
@ -223,7 +223,7 @@ export class Facet {
|
||||||
const h = nextHandle++;
|
const h = nextHandle++;
|
||||||
const e = {
|
const e = {
|
||||||
handle: h,
|
handle: h,
|
||||||
peer: { relay: other, target: new StopOnRetract() },
|
peer: new Ref(other, new StopOnRetract()),
|
||||||
crossSpace: null,
|
crossSpace: null,
|
||||||
established: true,
|
established: true,
|
||||||
};
|
};
|
||||||
|
|
|
@ -55,10 +55,9 @@ export class Membrane {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const INERT_REF: Ref = {
|
export const INERT_REF = new Ref(
|
||||||
relay: Actor.boot(() => Turn.active.stop(Turn.activeFacet)).root,
|
Actor.boot(() => Turn.active.stop(Turn.activeFacet)).root,
|
||||||
target: {},
|
{});
|
||||||
};
|
|
||||||
|
|
||||||
export interface ProxyInbound {
|
export interface ProxyInbound {
|
||||||
proxyPacket(packet: IO.Packet<Embedded<WireRef>>): void;
|
proxyPacket(packet: IO.Packet<Embedded<WireRef>>): void;
|
||||||
|
|
Loading…
Reference in New Issue