Skip to content

Commit

Permalink
fixup! minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Feb 3, 2024
1 parent 90620c8 commit 9a47f38
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/swingset-liveslots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@agoric/internal": "^0.3.2",
"@agoric/store": "^0.9.2",
"@endo/env-options": "^1.1.0",
"@endo/errors": "^1.0.2",
"@endo/eventual-send": "^1.1.0",
"@endo/exo": "^1.1.0",
"@endo/far": "^1.0.2",
Expand Down
18 changes: 6 additions & 12 deletions packages/swingset-liveslots/src/virtualObjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
/* eslint-disable no-use-before-define, jsdoc/require-returns-type */

import { environmentOptionsListHas } from '@endo/env-options';
import { assert, Fail } from '@agoric/assert';
import {
assert,
throwRedacted as Fail,
quote as q,
bare as b,
} from '@endo/errors';
import { assertPattern, mustMatch } from '@agoric/store';
import { defendPrototype, defendPrototypeKit } from '@endo/exo/tools.js';
import { Far, passStyleOf } from '@endo/marshal';
Expand All @@ -15,9 +20,6 @@ import {
checkAndUpdateFacetiousness,
} from './facetiousness.js';

// TODO Why is this here but commented out? If no longer relevant, remove
// import { kdebug } from './kdebug.js';

/** @template T @typedef {import('@agoric/vat-data').DefineKindOptions<T>} DefineKindOptions */

/**
Expand All @@ -26,17 +28,9 @@ import {
* @typedef {import('@endo/exo/src/exo-tools.js').KitContextProvider } KitContextProvider
*/

/**
*
*/

const { hasOwn, defineProperty, getOwnPropertyNames, entries, fromEntries } =
Object;
const { ownKeys } = Reflect;
// TODO https://github.com/Agoric/agoric-sdk/issues/8005
// TODO https://github.com/endojs/endo/issues/1703
// @ts-expect-error
const { quote: q, bare: b } = assert;

// Turn on to give each exo instance its own toStringTag value which exposes
// the SwingSet vref.
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,13 @@
resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-1.1.0.tgz#468d18c6cab6aaa5be733ba067750624ba6bac2b"
integrity sha512-5D1AcZnoeaymT0yzccceyu1fbMJ7vqyrOluFC+ebVh7pDLcF5EqP27lyBdw1/GKSM60u1MOn9h9YVxmNC/Gi4A==

"@endo/errors@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@endo/errors/-/errors-1.0.2.tgz#dc63fc6e831004e358eca0864cb8d9d46d381bfa"
integrity sha512-OiM7RiGP/iDWruTEPiZpjiZjgzfX81NHM05GyJi2dXCiaDbg78uFcjnQaoTvxFGvETfdakZe5igzgO6zm/icvQ==
dependencies:
ses "^1.1.0"

"@endo/eslint-plugin@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@endo/eslint-plugin/-/eslint-plugin-2.0.1.tgz#178ff82f84b514ffb194cf4b91699194030506d1"
Expand Down

0 comments on commit 9a47f38

Please sign in to comment.