Skip to content

Commit

Permalink
fix: also one in xsnap
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jul 14, 2021
1 parent e913950 commit 43af539
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/xsnap/test/test-boot-lockdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,17 @@ test('child compartment cannot access start powers', async t => {
await vat.evaluate(script);
await vat.close();

t.deepEqual(opts.messages, ['err was TypeError: Not available']);
// Temporarily tolerate Endo behavior before and after
// https://github.com/endojs/endo/pull/822
// TODO Simplify once depending on SES post #822
// t.deepEqual(opts.messages, [
// 'err was TypeError: Function.prototype.constructor is not a valid constructor.',
// ]);
t.assert(
opts.messages[0] === 'err was TypeError: Not available' ||
opts.messages[0] ===
'err was TypeError: Function.prototype.constructor is not a valid constructor.',
);
});

test('SES deep stacks work on xsnap', async t => {
Expand Down

0 comments on commit 43af539

Please sign in to comment.