We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4315fac + 1f372a9 commit c1dd765Copy full SHA for c1dd765
src/parser.ts
@@ -381,7 +381,11 @@ export default class Parser {
381
throw new ParseError(this.pos, 'ByteSequence does not contain a valid base64 string');
382
}
383
384
- return base64ToArrayBuffer(b64Content);
+ try {
385
+ return base64ToArrayBuffer(b64Content);
386
+ } catch {
387
+ throw new ParseError(this.pos, 'ByteSequence does not contain a valid base64 string');
388
+ }
389
390
391
test/httpwg-tests.js
@@ -269,7 +269,7 @@ function makeSerializeTest(test) {
269
270
if (test.can_fail) {
271
// Optional failure
272
- this.skip('can_fail was true');
+ t.skip('can_fail was true');
273
} else {
274
throw e;
275
0 commit comments