Skip to content

Commit

Permalink
fix(daemon,cli): fix #2700 use endo/init to prepare async hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Feb 7, 2025
1 parent 1bf94a1 commit 730ee1e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/endo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/* eslint-disable no-await-in-loop, no-bitwise, no-throw-literal */

// Establish a perimeter:
// TODO should this
// import '@endo/init';
// rather than the following three lines?
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/lockdown/commit.js';
Expand Down
5 changes: 1 addition & 4 deletions packages/daemon/src/daemon-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
/* global process */

// Establish a perimeter:
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/promise-kit/shim.js';
import '@endo/lockdown/commit.js';
import '@endo/init';

import crypto from 'crypto';
import net from 'net';
Expand Down
5 changes: 1 addition & 4 deletions packages/daemon/src/worker-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
/* global process */

// Establish a perimeter:
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/promise-kit/shim.js';
import '@endo/lockdown/commit.js';
import '@endo/init';

import fs from 'fs';
import url from 'url';
Expand Down
3 changes: 3 additions & 0 deletions packages/daemon/test/endo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/* global process */

// Establish a perimeter:
// TODO should this
// import '@endo/init/debug.js';
// rather than the following three lines?
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/lockdown/commit-debug.js';
Expand Down

0 comments on commit 730ee1e

Please sign in to comment.