Skip to content

Commit

Permalink
fix(xsnap): XS error stack behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Jun 18, 2022
1 parent b783ef3 commit 717ff53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/xsnap/test/test-boot-lockdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ test('SES deep stacks work on xsnap', async t => {
const send = msg => issueCommand(encoder.encode(JSON.stringify(msg)).buffer);
const err = Error('msg');
send('stack' in err);
send(err.stack);
const msg = getStackString(err);
send(msg);
`);
const [stackInErr, msg] = opts.messages.map(s => JSON.parse(s));
t.assert(!stackInErr);
const [stack, msg] = opts.messages.map(s => JSON.parse(s));
t.is(stack, 'Error: msg'); // No frames
t.is(typeof msg, 'string');
t.assert(msg.length >= 1);
});
Expand Down

0 comments on commit 717ff53

Please sign in to comment.