Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(daemon,cli): fix #2700 use endo/init to prepare async hooks #2708

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading