Skip to content

Commit 4e3d920

Browse files
committed
Auto-generated commit
1 parent c17a0bf commit 4e3d920

20 files changed

+2288
-4
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,28 @@
241241

242242
<!-- /.package -->
243243

244+
<section class="package" id="array-little-endian-float64-unreleased">
245+
246+
#### [@stdlib/array/little-endian-float64](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/little-endian-float64)
247+
248+
<details>
249+
250+
<section class="features">
251+
252+
##### Features
253+
254+
- [`15113bf`](https://github.com/stdlib-js/stdlib/commit/15113bf6c7663bc621160f386cad7d28cdd7b7cf) - add `array/little-endian-float64`
255+
256+
</section>
257+
258+
<!-- /.features -->
259+
260+
</details>
261+
262+
</section>
263+
264+
<!-- /.package -->
265+
244266
</section>
245267

246268
<!-- /.packages -->
@@ -271,6 +293,10 @@ A total of 5 people contributed to this release. Thank you to the following cont
271293
- [`eb82943`](https://github.com/stdlib-js/stdlib/commit/eb82943ec2ac2b3023377cbc320486d333f47e48) - **chore:** minor clean-up _(by Philipp Burckhardt)_
272294
- [`3c8bcb9`](https://github.com/stdlib-js/stdlib/commit/3c8bcb938befe35d784ba3fe0dea124dd4b20b36) - **chore:** minor clean-up _(by Philipp Burckhardt)_
273295
- [`177f16c`](https://github.com/stdlib-js/stdlib/commit/177f16cd80b9072714e7b4e976487e5e6dd19761) - **chore:** update package meta data [(#2933)](https://github.com/stdlib-js/stdlib/pull/2933) _(by stdlib-bot, Athan Reines)_
296+
- [`80d76d2`](https://github.com/stdlib-js/stdlib/commit/80d76d21c9524da51ff00bcbc838ee0c01d08ab5) - **refactor:** support child classes _(by Athan Reines)_
297+
- [`15113bf`](https://github.com/stdlib-js/stdlib/commit/15113bf6c7663bc621160f386cad7d28cdd7b7cf) - **feat:** add `array/little-endian-float64` _(by Athan Reines)_
298+
- [`1330fc2`](https://github.com/stdlib-js/stdlib/commit/1330fc2bb03714df474fc1f0180917d4eb7aad20) - **docs:** fix copyright year _(by Athan Reines)_
299+
- [`bee6aac`](https://github.com/stdlib-js/stdlib/commit/bee6aacf6ff2a762b0d1c696cc403cc3c1dd64b3) - **docs:** update description _(by Athan Reines)_
274300
- [`7d3199f`](https://github.com/stdlib-js/stdlib/commit/7d3199f4d91ad317802d62e4557f75b36b9f7748) - **docs:** remove duplicate horizontal line _(by Athan Reines)_
275301
- [`7a92103`](https://github.com/stdlib-js/stdlib/commit/7a92103ded645aa971bbac7544cafe24652fd5bd) - **docs:** update copy _(by Athan Reines)_
276302
- [`9325d5f`](https://github.com/stdlib-js/stdlib/commit/9325d5fcb04b58b7405cc9fd387935d9707cfb0e) - **feat:** add `array/fixed-endian-float64` _(by Athan Reines)_

fixed-endian-float64/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

fixed-endian-float64/lib/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var lowercase = require( '@stdlib/string/base/lowercase' );
3333
var hasIteratorSymbolSupport = require( '@stdlib/assert/has-iterator-symbol-support' );
3434
var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' );
3535
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
36+
var isPrototypeOf = require( '@stdlib/assert/is-prototype-of' ); // eslint-disable-line stdlib/no-redeclare
3637
var setReadOnlyAccessor = require( '@stdlib/utils/define-nonenumerable-read-only-accessor' );
3738
var ArrayBuffer = require( './../../buffer' );
3839
var DataView = require( './../../dataview' );
@@ -97,7 +98,10 @@ function isFloat64ArrayFE( value ) {
9798
return (
9899
typeof value === 'object' &&
99100
value !== null &&
100-
value.constructor.name === 'Float64ArrayFE' &&
101+
(
102+
value.constructor.name === 'Float64ArrayFE' ||
103+
isPrototypeOf( value, Float64ArrayFE.prototype )
104+
) &&
101105
value.BYTES_PER_ELEMENT === BYTES_PER_ELEMENT
102106
);
103107
}
@@ -231,7 +235,7 @@ function Float64ArrayFE() {
231235
} else {
232236
buf = arguments[ 1 ];
233237
if ( !isArrayBuffer( buf ) ) {
234-
throw new TypeError( format( 'invalid argument. First argument must be an ArrayBuffer. Value: `%s`.', buf ) );
238+
throw new TypeError( format( 'invalid argument. Must provide an ArrayBuffer. Value: `%s`.', buf ) );
235239
}
236240
byteOffset = arguments[ 2 ];
237241
if ( !isNonNegativeInteger( byteOffset ) ) {

fixed-endian-float64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stdlib/array/fixed-endian-float64",
33
"version": "0.0.0",
4-
"description": "Float64ArrayFE.",
4+
"description": "Float64Array having a specified byte order.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",

0 commit comments

Comments
 (0)