Skip to content

Commit

Permalink
fixup! review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 28, 2024
1 parent e78f9e8 commit d5c2dfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/swingset-liveslots/src/vatDataTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export type DefineKindOptions<C> = {
stateShape?: StateShape;

/**
* If a `receiveAmplifier` function is provided, it will be called during
* definition of the exo class kit with an `Amplify` function. If called
* during the definition of a normal exo or exo class, it will throw, since
* only exo kits can be amplified.
* If a `receiveAmplifier` function is provided to an exo class kit definition,
* it will be called with an `Amplify` function. If provided to the definition
* of a normal exo or exo class, the definition will throw, since only
* exo kits can be amplified.
* An `Amplify` function is a function that takes a facet instance of
* this class kit as an argument, in which case it will return the facets
* record, giving access to all the facet instances of the same cohort.
Expand Down
2 changes: 1 addition & 1 deletion packages/swingset-liveslots/src/virtualObjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ export const makeVirtualObjectManager = (

if (!multifaceted) {
receiveAmplifier === undefined ||
Fail`Only facets of an exo class kit can be amplified ${q(tag)}`;
Fail`Only facets of an exo class kit can be amplified, not ${q(tag)}`;
}

let facetNames;
Expand Down
3 changes: 2 additions & 1 deletion packages/vat-data/test/test-amplify-virtual-class-kits.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ test('test amplify defineVirtualExoClass fails', t => {
},
),
{
message: 'Only facets of an exo class kit can be amplified "UpCounter"',
message:
'Only facets of an exo class kit can be amplified, not "UpCounter"',
},
);
});
Expand Down

0 comments on commit d5c2dfd

Please sign in to comment.