Skip to content

Commit c68f75a

Browse files
committed
Add '__userRuntime' to interface since it is not kept private
1 parent b7cf32a commit c68f75a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rt/src/RuntimeInterface.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface RuntimeInterface {
1111
$t: Thread;
1212
$service: any; // todo 2021-06-13; identify what the right interface here should be
1313
debug(arg0: string);
14+
__userRuntime: any
1415
__sched: SchedulerInterface
1516
__mbox : MailboxInterface
1617
sendMessageNoChecks(toPid: any, message: LVal, arg2?: boolean): any;

rt/src/troupe.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ if (!fs.existsSync(p)) {
1919
}
2020
(async () => {
2121
let d = await import (p);
22-
let Top = d.default
23-
let __userRuntime = (getRuntimeObject() as any).__userRuntime;
24-
let top = new Top(__userRuntime);
22+
let Top = d.default;
23+
let top = new Top(getRuntimeObject().__userRuntime);
2524
start(top);
2625

2726
}) ()

0 commit comments

Comments
 (0)