Skip to content

Commit

Permalink
[patch] fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 4, 2024
1 parent 4c94a74 commit a061e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var isDataView = require('is-data-view');

// node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter
/** @type {import('.')} */
module.exports = $dataViewByteLength || function dataViewBuffer(x) {
module.exports = $dataViewByteLength || function byteLength(x) {
if (!isDataView(x)) {
throw new $TypeError('not a DataView');
}
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var inspect = require('object-inspect');

var dataViewByteLength = require('../');

test('dataViewBuffer', function (t) {
test('dataViewByteLength', function (t) {
forEach(
// @ts-expect-error TS sucks at [].concat
// eslint-disable-next-line no-extra-parens
Expand Down

0 comments on commit a061e7b

Please sign in to comment.