@agoric/swingset-liveslots 0.10.3-dev-8e87d58.0 → 0.10.3-dev-db4d0ea.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 +6 -6
- package/src/watchedPromises.js +6 -2
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-db4d0ea.0+db4d0ea",
|
|
4
4
|
"description": "SwingSet ocap support layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
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-db4d0ea.0+db4d0ea",
|
|
21
|
+
"@agoric/internal": "0.3.3-dev-db4d0ea.0+db4d0ea",
|
|
22
|
+
"@agoric/store": "0.9.3-dev-db4d0ea.0+db4d0ea",
|
|
23
23
|
"@endo/env-options": "^1.1.2",
|
|
24
24
|
"@endo/errors": "^1.2.0",
|
|
25
25
|
"@endo/eventual-send": "^1.2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@endo/promise-kit": "^1.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
36
|
+
"@agoric/kmarshal": "0.1.1-dev-db4d0ea.0+db4d0ea",
|
|
37
37
|
"ava": "^5.3.0"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"typeCoverage": {
|
|
70
70
|
"atLeast": 75.22
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "db4d0eab68a1d361ddbb6fe993ff0b9969a348e5"
|
|
73
73
|
}
|
package/src/watchedPromises.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
// no-lonely-if is a stupid rule that really should be disabled globally
|
|
3
3
|
/* eslint-disable no-lonely-if */
|
|
4
4
|
|
|
5
|
+
import { Fail } from '@endo/errors';
|
|
6
|
+
import { E } from '@endo/eventual-send';
|
|
5
7
|
import { assert } from '@agoric/assert';
|
|
6
8
|
import { initEmpty, M } from '@agoric/store';
|
|
7
|
-
import { E } from '@endo/eventual-send';
|
|
8
9
|
import { parseVatSlot } from './parseVatSlots.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -198,7 +199,10 @@ export function makeWatchedPromiseManager({
|
|
|
198
199
|
const watcherVref = convertValToSlot(watcher);
|
|
199
200
|
assert(watcherVref, 'invalid watcher');
|
|
200
201
|
const { virtual, durable } = parseVatSlot(watcherVref);
|
|
201
|
-
|
|
202
|
+
virtual ||
|
|
203
|
+
durable ||
|
|
204
|
+
// separate line so easy to breakpoint on
|
|
205
|
+
Fail`promise watcher must be a virtual object`;
|
|
202
206
|
if (watcher.onFulfilled) {
|
|
203
207
|
assert.typeof(watcher.onFulfilled, 'function');
|
|
204
208
|
}
|