Skip to content

Commit

Permalink
chore(swingset): remove 'harden' from kernelRequire
Browse files Browse the repository at this point in the history
The kernel now gets `harden` from the globals, so we no longer need to
support it doing `require('@agoric/haren')`.

refs #1214
  • Loading branch information
warner committed Jul 22, 2020
1 parent 62797d5 commit 5ecea08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/SwingSet/src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ export async function buildVatController(config, argv = []) {
harden(console);

function kernelRequire(what) {
if (what === '@agoric/harden') {
return harden;
} else if (what === 're2') {
if (what === 're2') {
// The kernel imports @agoric/transform-metering to get makeMeter(),
// and transform-metering imports re2, to add it to the generated
// endowments. TODO Our transformers no longer traffic in endowments,
Expand Down

0 comments on commit 5ecea08

Please sign in to comment.