Skip to content

Commit 3a7f26c

Browse files
committed
remove IE11 trick from decode.jsfuzz.js
1 parent c72ff26 commit 3a7f26c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/decode.jsfuzz.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
const assert = require("assert");
3-
const { Decoder, encode, DecodeError, DataViewIndexOutOfBoundsError } = require("../dist/index.js");
3+
const { Decoder, encode, DecodeError } = require("../dist/index.js");
44

55
/**
66
* @param {Buffer} bytes
@@ -13,7 +13,7 @@ module.exports.fuzz = function fuzz(bytes) {
1313
} catch (e) {
1414
if (e instanceof DecodeError) {
1515
// ok
16-
} else if (e instanceof DataViewIndexOutOfBoundsError) {
16+
} else if (e instanceof RangeError) {
1717
// ok
1818
} else {
1919
throw e;

0 commit comments

Comments
 (0)