Skip to content

Commit

Permalink
add globalThis.VatData.passStyleOf to liveslots-hosted vat environment
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed May 31, 2024
1 parent b337eef commit 2ace6d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@endo/init": "^1.0.4",
"@endo/marshal": "^1.3.0",
"@endo/nat": "^5.0.4",
"@endo/pass-style": "^1.2.0",
"@endo/patterns": "^1.2.0",
"@endo/promise-kit": "^1.0.4",
"@endo/ses-ava": "^1.1.2",
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-vat-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async function testForExpectedGlobals(t, workerType) {
'VatData.makeScalarBigWeakMapStore: function',
'VatData.makeScalarBigSetStore: function',
'VatData.makeScalarBigWeakSetStore: function',
'VatData.passStyleOf: function',
]);
}

Expand Down
9 changes: 3 additions & 6 deletions packages/swingset-liveslots/src/liveslots.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/* eslint @typescript-eslint/no-floating-promises: "warn" */
import {
Remotable,
passStyleOf,
getInterfaceOf,
makeMarshal,
} from '@endo/marshal';
import { Remotable, getInterfaceOf, makeMarshal } from '@endo/marshal';
import { assert, Fail } from '@agoric/assert';
import { passStyleOf } from '@endo/pass-style';
import { isPromise } from '@endo/promise-kit';
import { E, HandledPromise } from '@endo/eventual-send';
import { insistVatType, makeVatSlot, parseVatSlot } from './parseVatSlots.js';
Expand Down Expand Up @@ -1337,6 +1333,7 @@ function build(
makeScalarBigWeakMapStore: collectionManager.makeScalarBigWeakMapStore,
makeScalarBigSetStore: collectionManager.makeScalarBigSetStore,
makeScalarBigWeakSetStore: collectionManager.makeScalarBigWeakSetStore,
passStyleOf,
},
});

Expand Down

0 comments on commit 2ace6d9

Please sign in to comment.