@agoric/swingset-liveslots 0.10.3-dev-f30b379.0 → 0.10.3-dev-64cb69f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -6
- package/src/virtualObjectManager.js +8 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/swingset-liveslots",
|
|
3
|
-
"version": "0.10.3-dev-
|
|
3
|
+
"version": "0.10.3-dev-64cb69f.0+64cb69f",
|
|
4
4
|
"description": "SwingSet ocap support layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -17,9 +17,11 @@
|
|
|
17
17
|
"lint:eslint": "eslint ."
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@agoric/assert": "0.6.1-dev-
|
|
21
|
-
"@agoric/internal": "0.3.3-dev-
|
|
22
|
-
"@agoric/store": "0.9.3-dev-
|
|
20
|
+
"@agoric/assert": "0.6.1-dev-64cb69f.0+64cb69f",
|
|
21
|
+
"@agoric/internal": "0.3.3-dev-64cb69f.0+64cb69f",
|
|
22
|
+
"@agoric/store": "0.9.3-dev-64cb69f.0+64cb69f",
|
|
23
|
+
"@endo/env-options": "^1.1.0",
|
|
24
|
+
"@endo/errors": "^1.0.2",
|
|
23
25
|
"@endo/eventual-send": "^1.1.0",
|
|
24
26
|
"@endo/exo": "^1.1.0",
|
|
25
27
|
"@endo/far": "^1.0.2",
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
"@endo/promise-kit": "^1.0.2"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
36
|
+
"@agoric/kmarshal": "0.1.1-dev-64cb69f.0+64cb69f",
|
|
35
37
|
"ava": "^5.3.0"
|
|
36
38
|
},
|
|
37
39
|
"files": [
|
|
@@ -67,5 +69,5 @@
|
|
|
67
69
|
"typeCoverage": {
|
|
68
70
|
"atLeast": 75.1
|
|
69
71
|
},
|
|
70
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "64cb69fccd4b6ababc0f089dd80b4955a70f1da3"
|
|
71
73
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/* global globalThis */
|
|
2
2
|
/* eslint-disable no-use-before-define, jsdoc/require-returns-type */
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { environmentOptionsListHas } from '@endo/env-options';
|
|
5
|
+
import {
|
|
6
|
+
assert,
|
|
7
|
+
throwRedacted as Fail,
|
|
8
|
+
quote as q,
|
|
9
|
+
bare as b,
|
|
10
|
+
} from '@endo/errors';
|
|
5
11
|
import { assertPattern, mustMatch } from '@agoric/store';
|
|
6
12
|
import { defendPrototype, defendPrototypeKit } from '@endo/exo/tools.js';
|
|
7
13
|
import { Far, passStyleOf } from '@endo/marshal';
|
|
@@ -22,29 +28,9 @@ import {
|
|
|
22
28
|
* @typedef {import('@endo/exo/src/exo-tools.js').KitContextProvider } KitContextProvider
|
|
23
29
|
*/
|
|
24
30
|
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
31
|
const { hasOwn, defineProperty, getOwnPropertyNames, entries, fromEntries } =
|
|
30
32
|
Object;
|
|
31
33
|
const { ownKeys } = Reflect;
|
|
32
|
-
const { quote: q } = assert;
|
|
33
|
-
|
|
34
|
-
// See https://github.com/Agoric/agoric-sdk/issues/8005
|
|
35
|
-
// Once agoric-sdk is upgraded to depend on endo post
|
|
36
|
-
// https://github.com/endojs/endo/pull/1606 then remove this
|
|
37
|
-
// definition of `b` and say instead
|
|
38
|
-
// ```js
|
|
39
|
-
// const { quote: q, base: b } = assert;
|
|
40
|
-
// ```
|
|
41
|
-
const b = index => q(Number(index));
|
|
42
|
-
|
|
43
|
-
// import { kdebug } from './kdebug.js';
|
|
44
|
-
|
|
45
|
-
// TODO Use environment-options.js currently in ses/src after factoring it out
|
|
46
|
-
// to a new package.
|
|
47
|
-
const env = (globalThis.process || {}).env || {};
|
|
48
34
|
|
|
49
35
|
// Turn on to give each exo instance its own toStringTag value which exposes
|
|
50
36
|
// the SwingSet vref.
|
|
@@ -53,9 +39,7 @@ const env = (globalThis.process || {}).env || {};
|
|
|
53
39
|
// confidential object-creation activity, so this must not be something
|
|
54
40
|
// that unprivileged vat code (including unprivileged contracts) can do
|
|
55
41
|
// for themselves.
|
|
56
|
-
const LABEL_INSTANCES = (
|
|
57
|
-
.split(':')
|
|
58
|
-
.includes('label-instances');
|
|
42
|
+
const LABEL_INSTANCES = environmentOptionsListHas('DEBUG', 'label-instances');
|
|
59
43
|
|
|
60
44
|
// This file implements the "Virtual Objects" system, currently documented in
|
|
61
45
|
// {@link https://github.com/Agoric/agoric-sdk/blob/master/packages/SwingSet/docs/virtual-objects.md})
|