@agoric/swingset-xsnap-supervisor 0.9.1-dev-9ec9ce2.0 → 0.9.1-dev-de56bbf.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.
@@ -1 +1 @@
1
- 274394f130dcec0d0c1e3295500f149d8357417195330e9f59ab069d0e3d6b01
1
+ 0c8cd0763d06f2154be29414c1e0cb0aaf78bf57258d40f46010007dc8144f60
@@ -1,4 +1,3 @@
1
- import { assert } from '@agoric/assert';
2
1
  import {
3
2
  insistVatSyscallObject,
4
3
  insistVatSyscallResult,
@@ -59,11 +58,10 @@ export { makeSupervisorDispatch };
59
58
  * VatSyscallObject and (synchronously) returns a VatSyscallResult.
60
59
  *
61
60
  * @param {VatSyscallHandler} syscallToManager
62
- * @param {boolean} workerCanBlock
63
61
  * @typedef { unknown } TheSyscallObjectWithMethodsThatLiveslotsWants
64
62
  * @returns {TheSyscallObjectWithMethodsThatLiveslotsWants}
65
63
  */
66
- function makeSupervisorSyscall(syscallToManager, workerCanBlock) {
64
+ function makeSupervisorSyscall(syscallToManager) {
67
65
  function doSyscall(fields) {
68
66
  insistVatSyscallObject(fields);
69
67
  /** @type { VatSyscallObject } */
@@ -75,10 +73,6 @@ function makeSupervisorSyscall(syscallToManager, workerCanBlock) {
75
73
  console.warn(`worker got error during syscall:`, err);
76
74
  throw err;
77
75
  }
78
- if (!workerCanBlock) {
79
- // we don't expect an answer
80
- return null;
81
- }
82
76
  const vsr = r;
83
77
  insistVatSyscallResult(vsr);
84
78
  const [type, ...rest] = vsr;
@@ -126,21 +120,6 @@ function makeSupervisorSyscall(syscallToManager, workerCanBlock) {
126
120
  vatstoreDelete: key => doSyscall(['vatstoreDelete', key]),
127
121
  };
128
122
 
129
- const blocking = [
130
- 'callNow',
131
- 'vatstoreGet',
132
- 'vatstoreGetNextKey',
133
- 'vatstoreSet',
134
- 'vatstoreDelete',
135
- ];
136
-
137
- if (!workerCanBlock) {
138
- for (const name of blocking) {
139
- const err = `this non-blocking worker transport cannot syscall.${name}`;
140
- syscallForVat[name] = () => assert.fail(err);
141
- }
142
- }
143
-
144
123
  return harden(syscallForVat);
145
124
  }
146
125
 
@@ -205,7 +205,7 @@ function makeWorker(port) {
205
205
  return result;
206
206
  }
207
207
 
208
- const syscall = makeSupervisorSyscall(syscallToManager, true);
208
+ const syscall = makeSupervisorSyscall(syscallToManager);
209
209
 
210
210
  const vatPowers = {
211
211
  makeMarshal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swingset-xsnap-supervisor",
3
- "version": "0.9.1-dev-9ec9ce2.0+9ec9ce2",
3
+ "version": "0.9.1-dev-de56bbf.0+de56bbf",
4
4
  "description": "Supervisor/Liveslots bundle for swingset xsnap workers",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -23,8 +23,8 @@
23
23
  "test:xs": "exit 0"
24
24
  },
25
25
  "devDependencies": {
26
- "@agoric/assert": "0.5.2-dev-9ec9ce2.0+9ec9ce2",
27
- "@agoric/swingset-liveslots": "0.9.1-dev-9ec9ce2.0+9ec9ce2",
26
+ "@agoric/assert": "0.5.2-dev-de56bbf.0+de56bbf",
27
+ "@agoric/swingset-liveslots": "0.9.1-dev-de56bbf.0+de56bbf",
28
28
  "@endo/bundle-source": "^2.5.1",
29
29
  "@endo/import-bundle": "^0.3.4",
30
30
  "@endo/init": "^0.5.56",
@@ -48,5 +48,5 @@
48
48
  "timeout": "2m",
49
49
  "workerThreads": false
50
50
  },
51
- "gitHead": "9ec9ce277897c47df8b64856eabd3119f89416ce"
51
+ "gitHead": "de56bbf9067d277adefd6f1ac4c223f30cbe6825"
52
52
  }