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.
1 parent 0a880c0 commit d27357dCopy full SHA for d27357d
.eslintrc
@@ -2,4 +2,8 @@
2
"root": true,
3
4
"extends": "@ljharb",
5
+
6
+ "globals": {
7
+ "DataView": false,
8
+ },
9
}
test/index.js
@@ -19,6 +19,9 @@ test('byteLength', function (t) {
19
var ab0 = new ArrayBuffer(0);
20
st.equal(byteLength(ab0), 0, 'works on an ArrayBuffer of length 0: ' + inspect(ab0));
21
22
+ var dv = new DataView(ab32);
23
+ st.equal(byteLength(dv), NaN, 'a DataView returns NaN');
24
25
st.end();
26
});
27
0 commit comments