-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1579 from Agoric/1568-test-with-ava
chore: update more packages to use AVA for testing * swingset * bundle-source * acorn-evnetual-send * captp * marshal * import-bundle
- Loading branch information
Showing
63 changed files
with
1,106 additions
and
1,423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/SwingSet/src/kernel/vatManager/nodeWorkerSupervisorCJS.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// `tap` and `node -r esm` were able to allow the swingset process to create | ||
// a thread (`new Worker()`) from the (ESM) supervisor file without problems, | ||
// but for some reason AVA cannot. The file loaded into the new thread | ||
// appears to lack the effects which `-r esm` had on the rest of the tree. | ||
// This stub, written as CJS, exists to allow the real supervisor to be | ||
// loaded under AVA. With luck, when we switch everything to use real ESM | ||
// modules, and stop using `-r esm`, this should become unnecessary, and | ||
// `controller.js` can point at `nodeWorkerSupervisor.js` instead. | ||
|
||
// eslint-disable-next-line no-global-assign | ||
require = require('esm')(module); | ||
module.exports = require('./nodeWorkerSupervisor'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.