Skip to content

Commit 9365a52

Browse files
committed
Auto-generated commit
1 parent 71dea5e commit 9365a52

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128

129129
### Bug Fixes
130130

131+
- [`179f005`](https://github.com/stdlib-js/stdlib/commit/179f005163d265ff38f7571465c2514f8ccb22cf) - use correct variable name
131132
- [`4252199`](https://github.com/stdlib-js/stdlib/commit/42521999bf5751baf748fb1e9528c9c4b31a9116) - ensure byte offset is a multiple of data type byte length
132133
- [`c54d1e0`](https://github.com/stdlib-js/stdlib/commit/c54d1e095143ad68529927fe76e8ddc435592a19) - revert iterator type change
133134
- [`09ff0ce`](https://github.com/stdlib-js/stdlib/commit/09ff0ce53ae1c659591a4106c7f44b9df29bcdfd) - add missing index normalization and add associated tests
@@ -213,6 +214,7 @@ A total of 32 issues were closed in this release:
213214

214215
<details>
215216

217+
- [`179f005`](https://github.com/stdlib-js/stdlib/commit/179f005163d265ff38f7571465c2514f8ccb22cf) - **fix:** use correct variable name _(by Athan Reines)_
216218
- [`74f2d2f`](https://github.com/stdlib-js/stdlib/commit/74f2d2fbf3eb548d043ef8c67c66120a67d97e17) - **refactor:** move function to file _(by Athan Reines)_
217219
- [`7f0421e`](https://github.com/stdlib-js/stdlib/commit/7f0421e54502fdd9e92758d9c9123216372287fd) - **feat:** add inital implementation of `array/struct-factory` _(by Athan Reines)_
218220
- [`4252199`](https://github.com/stdlib-js/stdlib/commit/42521999bf5751baf748fb1e9528c9c4b31a9116) - **fix:** ensure byte offset is a multiple of data type byte length _(by Athan Reines)_

struct-factory/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function factory( arg ) { // eslint-disable-line stdlib/jsdoc-require-throws-tag
147147
} else if ( isStructConstructor( arg ) ) {
148148
Struct = arg;
149149
} else {
150-
throw new TypeError( format( 'invalid argument. First argument must be either a struct constructor or struct schema. Value: `%s`.', Struct ) );
150+
throw new TypeError( format( 'invalid argument. First argument must be either a struct constructor or struct schema. Value: `%s`.', arg ) );
151151
}
152152
BYTES_PER_ELEMENT = Struct.byteLength;
153153
LAYOUT = Struct.layout; // TODO: consider whether to lazily materialize the struct layout, as this could potentially be a long string (hence increased memory consumption) depending on the complexity of the struct

0 commit comments

Comments
 (0)