@agoric/xsnap 0.14.3-dev-c1156cd.0 → 0.14.3-dev-bc8900d.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/xsnap.js +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/xsnap",
3
- "version": "0.14.3-dev-c1156cd.0+c1156cd",
3
+ "version": "0.14.3-dev-bc8900d.0+bc8900d",
4
4
  "description": "Snapshotting VM worker based on Moddable's XS Javascript engine",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -28,8 +28,8 @@
28
28
  "test:xs": "exit 0"
29
29
  },
30
30
  "dependencies": {
31
- "@agoric/internal": "0.3.3-dev-c1156cd.0+c1156cd",
32
- "@agoric/xsnap-lockdown": "0.14.1-dev-c1156cd.0+c1156cd",
31
+ "@agoric/internal": "0.3.3-dev-bc8900d.0+bc8900d",
32
+ "@agoric/xsnap-lockdown": "0.14.1-dev-bc8900d.0+bc8900d",
33
33
  "@endo/bundle-source": "^3.4.0",
34
34
  "@endo/errors": "^1.2.5",
35
35
  "@endo/eventual-send": "^1.2.5",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 93.99
80
80
  },
81
- "gitHead": "c1156cddc4acff07c945ff3fbce68d8e1cd844db"
81
+ "gitHead": "bc8900d6cd2a51265533b9731437391f9194ec05"
82
82
  }
package/src/xsnap.js CHANGED
@@ -287,7 +287,7 @@ export async function xsnap(options) {
287
287
  * @template T
288
288
  * @typedef {object} RunResult
289
289
  * @property {T} reply
290
- * @property {{ meterType: string, allocate: number|null, compute: number|null, timestamps: number[]|null }} meterUsage
290
+ * @property {{ meterType: string, allocate: number|null, compute: number|null, currentHeapCount: number|null, timestamps: number[]|null }} meterUsage
291
291
  */
292
292
 
293
293
  /**
@@ -312,7 +312,12 @@ export async function xsnap(options) {
312
312
  xsnapProcess.kill();
313
313
  throw Error('xsnap protocol error: received empty message');
314
314
  } else if (message[0] === OK) {
315
- let meterInfo = { compute: null, allocate: null, timestamps: [] };
315
+ let meterInfo = {
316
+ compute: null,
317
+ allocate: null,
318
+ currentHeapCount: null,
319
+ timestamps: [],
320
+ };
316
321
  const meterSeparator = message.indexOf(OK_SEPARATOR, 1);
317
322
  if (meterSeparator >= 0) {
318
323
  // The message is `.meterdata\1reply`.