File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
is-struct-constructor-like Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 44
55<section class =" release " id =" unreleased " >
66
7- ## Unreleased (2025-06-23 )
7+ ## Unreleased (2025-06-24 )
88
99<section class =" features " >
1010
4949
5050### Bug Fixes
5151
52+ - [ ` 04fbd21 ` ] ( https://github.com/stdlib-js/stdlib/commit/04fbd2138efb9db2fc14dcff5be31f200004a9e2 ) - add missing ` isStruct ` method check
5253- [ ` 21cdf0c ` ] ( https://github.com/stdlib-js/stdlib/commit/21cdf0c4d3de902744dfecd3387bc64317eddfd4 ) - javascript lint errors [ (#7143 )] ( https://github.com/stdlib-js/stdlib/pull/7143 )
5354
5455</section >
@@ -107,6 +108,7 @@ A total of 6 issues were closed in this release:
107108
108109<details >
109110
111+ - [ ` 04fbd21 ` ] ( https://github.com/stdlib-js/stdlib/commit/04fbd2138efb9db2fc14dcff5be31f200004a9e2 ) - ** fix:** add missing ` isStruct ` method check _ (by Athan Reines)_
110112- [ ` 0ba0d91 ` ] ( https://github.com/stdlib-js/stdlib/commit/0ba0d912c0608c3fa8daff70874c9fa8de672a3a ) - ** feat:** add ` isStructConstructorLike ` to namespace _ (by Athan Reines)_
111113- [ ` 67b59c6 ` ] ( https://github.com/stdlib-js/stdlib/commit/67b59c6d61abd31bc0fa7fadc673a0dbfb02d387 ) - ** feat:** add ` assert/is-struct-constructor-like ` _ (by Athan Reines)_
112114- [ ` f58120f ` ] ( https://github.com/stdlib-js/stdlib/commit/f58120f6a16840c817e26f439224a67e1680e21c ) - ** feat:** add header for asserting is a Node-API value is a DataView _ (by Athan Reines)_
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ function isStructConstructorLike( value ) {
5858 isFunction ( value . byteLengthOf ) &&
5959 isFunction ( value . byteOffsetOf ) &&
6060 isFunction ( value . bufferOf ) &&
61+ isFunction ( value . isStruct ) &&
6162 isFunction ( value . viewOf ) &&
6263 hasOwnProp ( value , 'fields' ) &&
6364 hasOwnProp ( value , 'layout' )
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ tape( 'the function returns `true` if provided a struct constructor-like object'
5959 Struct . byteLengthOf = noop ;
6060 Struct . byteOffsetOf = noop ;
6161 Struct . bufferOf = noop ;
62+ Struct . isStruct = noop ;
6263 Struct . viewOf = noop ;
6364 Struct . fields = [ 'foo' ] ;
6465 Struct . layout = '' ;
You can’t perform that action at this time.
0 commit comments