Skip to content

Commit cb361c8

Browse files
committed
fix(daemon,cli): fix #2700 use endo/init to prepare async hooks
1 parent 895ea0a commit cb361c8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/cli/src/endo.js

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
/* eslint-disable no-await-in-loop, no-bitwise, no-throw-literal */
44

55
// Establish a perimeter:
6+
// TODO should this
7+
// import '@endo/init';
8+
// rather than the following three lines?
69
import 'ses';
710
import '@endo/eventual-send/shim.js';
811
import '@endo/lockdown/commit.js';

packages/daemon/src/daemon-node.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
/* global process */
33

44
// Establish a perimeter:
5-
import 'ses';
6-
import '@endo/eventual-send/shim.js';
7-
import '@endo/promise-kit/shim.js';
8-
import '@endo/lockdown/commit.js';
5+
import '@endo/init';
96

107
import crypto from 'crypto';
118
import net from 'net';

packages/daemon/src/worker-node.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
/* global process */
33

44
// Establish a perimeter:
5-
import 'ses';
6-
import '@endo/eventual-send/shim.js';
7-
import '@endo/promise-kit/shim.js';
8-
import '@endo/lockdown/commit.js';
5+
import '@endo/init';
96

107
import fs from 'fs';
118
import url from 'url';

packages/daemon/test/endo.test.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
/* global process */
33

44
// Establish a perimeter:
5+
// TODO should this
6+
// import '@endo/init/debug.js';
7+
// rather than the following three lines?
58
import 'ses';
69
import '@endo/eventual-send/shim.js';
710
import '@endo/lockdown/commit-debug.js';

0 commit comments

Comments
 (0)