Skip to content

Commit

Permalink
move harden() back to original spot
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Jul 24, 2024
1 parent 978a59e commit 9f0d4b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/swingset-liveslots/src/liveslots.js
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ function build(
syscall.dropImports([slot]);
}

const vatGlobals = {
const vatGlobals = harden({
VatData: {
defineKind: vom.defineKind,
defineKindMulti: vom.defineKindMulti,
Expand All @@ -1336,8 +1336,7 @@ function build(
makeScalarBigWeakSetStore: collectionManager.makeScalarBigWeakSetStore,
},
[PassStyleOfEndowmentSymbol]: passStyleOf,
};
harden(vatGlobals);
});

const inescapableGlobalProperties = harden({
WeakMap: vom.VirtualObjectAwareWeakMap,
Expand Down

0 comments on commit 9f0d4b8

Please sign in to comment.