@agoric/swingset-liveslots 0.10.3-upgrade-16-dev-d45b478.0 → 0.10.3-upgrade-16-dev-5e17008.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swingset-liveslots",
3
- "version": "0.10.3-upgrade-16-dev-d45b478.0+d45b478",
3
+ "version": "0.10.3-upgrade-16-dev-5e17008.0+5e17008",
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-upgrade-16-dev-d45b478.0+d45b478",
21
- "@agoric/internal": "0.3.3-upgrade-16-dev-d45b478.0+d45b478",
22
- "@agoric/store": "0.9.3-upgrade-16-dev-d45b478.0+d45b478",
20
+ "@agoric/assert": "0.6.1-upgrade-16-dev-5e17008.0+5e17008",
21
+ "@agoric/internal": "0.3.3-upgrade-16-dev-5e17008.0+5e17008",
22
+ "@agoric/store": "0.9.3-upgrade-16-dev-5e17008.0+5e17008",
23
23
  "@endo/env-options": "^1.1.4",
24
24
  "@endo/errors": "^1.2.2",
25
25
  "@endo/eventual-send": "^1.2.2",
@@ -33,7 +33,7 @@
33
33
  "@endo/promise-kit": "^1.1.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@agoric/kmarshal": "0.1.1-upgrade-16-dev-d45b478.0+d45b478",
36
+ "@agoric/kmarshal": "0.1.1-upgrade-16-dev-5e17008.0+5e17008",
37
37
  "ava": "^5.3.0"
38
38
  },
39
39
  "files": [
@@ -69,5 +69,5 @@
69
69
  "typeCoverage": {
70
70
  "atLeast": 75.29
71
71
  },
72
- "gitHead": "d45b478fe2dd21ff463660522e1998ab3e8bbe65"
72
+ "gitHead": "5e1700835993739016a08936193644c1ae5abb13"
73
73
  }
package/src/cache.js CHANGED
@@ -17,7 +17,7 @@ import { Fail } from '@agoric/assert';
17
17
  /**
18
18
  * @callback CacheDelete
19
19
  * @param {string} key
20
- * @returns {boolean}
20
+ * @returns {void}
21
21
  *
22
22
  * @callback CacheFlush
23
23
  * @returns {void}
@@ -83,9 +83,8 @@ export function makeCache(readBacking, writeBacking, deleteBacking) {
83
83
  },
84
84
  delete: key => {
85
85
  assert.typeof(key, 'string');
86
- const result = stash.delete(key);
86
+ stash.delete(key);
87
87
  dirtyKeys.add(key);
88
- return result;
89
88
  },
90
89
  flush: () => {
91
90
  const keys = [...dirtyKeys.keys()];
@@ -157,9 +157,15 @@ export function makeWatchedPromiseManager({
157
157
  function providePromiseWatcher(
158
158
  kindHandle,
159
159
  // @ts-expect-error xxx rest params in typedef
160
- fulfillHandler = _value => {},
160
+ fulfillHandler = _value => {
161
+ // It's fine to not pass the value through since promise watchers are not chainable
162
+ },
161
163
  // @ts-expect-error xxx rest params in typedef
162
- rejectHandler = _reason => {},
164
+ rejectHandler = reason => {
165
+ // Replicate the unhandled rejection that would have happened if the
166
+ // watcher had not implemented an `onRejected` method. See `settle` above
167
+ throw reason;
168
+ },
163
169
  ) {
164
170
  assert.typeof(fulfillHandler, 'function');
165
171
  assert.typeof(rejectHandler, 'function');