Skip to content

Commit

Permalink
feat(xsnap)!: Update Moddable SDK and xsnap-native (#6920)
Browse files Browse the repository at this point in the history
* feat(xsnap)!: Update Moddable SDK and xsnap-native

Moddable SDK 3.7.0
xsnap-native:
- handle profiler and instrumentation changes (disabled)
- updated promise queue behavior

* fix: Update tests impacted by version bump

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mhofman and mergify[bot] authored Feb 8, 2023
1 parent 95a7fa5 commit ddb745b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
12 changes: 6 additions & 6 deletions packages/SwingSet/test/snapshots/test-xsnap-store.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ Generated by [AVA](https://avajs.dev).
{
compressSeconds: 0,
hash: '8a0e3873976c50462d1b1dac59c912152b0e5cad5eeb9deca0ca64a087b4a873',
hash: 'c77e111a40bba743b29cc5bb3abfbd57c1a7143772117cb01da874f5cfe59415',
rawSaveSeconds: 0,
uncompressedSize: 167887,
uncompressedSize: 168123,
}

> after SES boot - sensitive to SES-shim, XS, and supervisor
{
compressSeconds: 0,
hash: 'e1392d787a70c1afe7826d2cc5e2abe8c6615415b79f5fbc76f5eccb7efeff2a',
hash: '3a62221548f1d4e9da4961e4fe1cff13f7170c9abfade9171eecfa58d6028c34',
rawSaveSeconds: 0,
uncompressedSize: 775735,
uncompressedSize: 777171,
}

> after use of harden() - sensitive to SES-shim, XS, and supervisor
{
compressSeconds: 0,
hash: '51d8a981b1515c95acb20753df63055930b19095c9566badbfe3f5c254ab6ff4',
hash: '2a595ba90b014defb02d02595bc89c1058a5186eab3b8c0ff0dda9d214104543',
rawSaveSeconds: 0,
uncompressedSize: 777887,
uncompressedSize: 779331,
}
Binary file modified packages/SwingSet/test/snapshots/test-xsnap-store.js.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/xsnap/moddable
Submodule moddable updated 1094 files
4 changes: 2 additions & 2 deletions packages/xsnap/test/test-xs-perf.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('meter details', async t => {

t.like(
meters,
{ compute: 1_380_187, allocate: 42_074_144 },
{ compute: 1_380_185, allocate: 42_074_144 },
'compute, allocate meters should be stable; update METER_TYPE?',
);

Expand Down Expand Up @@ -170,7 +170,7 @@ test('metering regex - REDOS', async t => {
'aaaaaaaaa!'.match(/^(([a-z])+.)+/)
`);
const { meterUsage: meters } = result;
t.like(meters, { compute: 142 });
t.like(meters, { compute: 140 });
});

test('meter details are still available with no limit', async t => {
Expand Down
14 changes: 8 additions & 6 deletions packages/xsnap/test/test-xsnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ test('print - start compartment only', async t => {
}
`);
await vat.close();
t.deepEqual(
['err:ReferenceError: ?: get print: undefined variable'],
opts.messages,
t.is(opts.messages.length, 1);
t.regex(
opts.messages[0],
/^err:ReferenceError: [^:]+: get print: undefined variable$/,
);
});

Expand All @@ -159,9 +160,10 @@ test('gc - start compartment only', async t => {
}
`);
await vat.close();
t.deepEqual(
['err:ReferenceError: ?: get gc: undefined variable'],
opts.messages,
t.is(opts.messages.length, 1);
t.regex(
opts.messages[0],
/^err:ReferenceError: [^:]+: get gc: undefined variable$/,
);
});

Expand Down

0 comments on commit ddb745b

Please sign in to comment.