test:fix: `marshal.parse` throws instanceOf `SyntaxError`
MODIFY
packages/marshal/test/test-marshal-stringify.js
packages/marshal/test/test-marshal-stringify.js
@@ -56,7 +56,7 @@ test('marshal parse errors', t => {
message: /Marshal's parse must not encode any slot positions .*/,
});
t.throws(() => parse('X'), {
- message: /Unexpected token X in JSON at position 0*/,
+ instanceOf: SyntaxError,
});
t.throws(() => parse('{"@qclass":8}'), {
message: /invalid "@qclass" typeof "number"*/,

test:fix: `marshal.parse` throws instanceOf `SyntaxError`

Co-Authored-By: Michael FIG <michael+github@fig.org>