Skip to content

Commit 11f172c

Browse files
MANDEep22332kgryte
andauthored
chore: fix JavaScript lint errors
PR-URL: #11168 Closes: #11164 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 38289cf commit 11f172c

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/assert/has-dataview-support/test

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/assert/has-dataview-support/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ tape( 'if `DataView` is supported, detection result is `true`', function test( t
7171
}
7272
out = {};
7373
out.buffer = buf;
74-
out._buffer = new Array( byteLength ); // eslint-disable-line no-underscore-dangle
74+
out._buffer = []; // eslint-disable-line no-underscore-dangle
7575
for ( i = 0; i < byteLength; i++ ) {
76-
out._buffer[ i ] = 0; // eslint-disable-line no-underscore-dangle
76+
out._buffer.push( 0 ); // eslint-disable-line no-underscore-dangle
7777
}
7878
out.byteLength = byteLength;
7979
out.byteOffset = byteOffset;

0 commit comments

Comments
 (0)