Skip to content

Commit 1fd94a0

Browse files
committed
Fix template bugs and disable lint rule
1 parent 8009603 commit 1fd94a0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/node_modules/@stdlib/_tools/scaffold/strided-unary/data/docs/types/test__ts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ import {{ALIAS}} = require( './index' );
142142

143143
{{ALIAS}}(); // $ExpectError
144144
{{ALIAS}}( x.length ); // $ExpectError
145-
{{ALIAS}}( x.length, '{{TYPED_ARRAY_DTYPE}}'); // $ExpectError
145+
{{ALIAS}}( x.length, '{{TYPED_ARRAY_DTYPE}}' ); // $ExpectError
146146
{{ALIAS}}( x.length, '{{TYPED_ARRAY_DTYPE}}', x ); // $ExpectError
147147
{{ALIAS}}( x.length, '{{TYPED_ARRAY_DTYPE}}', x, 1 ); // $ExpectError
148148
{{ALIAS}}( x.length, '{{TYPED_ARRAY_DTYPE}}', x, 1, '{{TYPED_ARRAY_DTYPE}}' ); // $ExpectError

lib/node_modules/@stdlib/_tools/scaffold/strided-unary/data/lib/alias__native__js.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function {{ALIAS}}( N, dtypeX, x, strideX, dtypeY, y, strideY ) {
6666
var t2 = enumerate( dtypeY );
6767

6868
// WARNING: we assume that, if we're provided something resembling a typed array, we're provided a typed array; however, this can lead to potential unintended errors as the native add-on cannot work with non-typed array objects (e.g., generic arrays)...
69-
if ( t1 === void 0 || t2 === void 0 || !isTypedArrayLike( x ) || !isTypedArrayLike( y ) ) {
69+
if ( t1 === void 0 || t2 === void 0 || !isTypedArrayLike( x ) || !isTypedArrayLike( y ) ) { // eslint-disable-line max-len
7070
return js( N, dtypeX, x, strideX, dtypeY, y, strideY );
7171
}
7272
addon( N, t1, x, strideX, t2, y, strideY );

lib/node_modules/@stdlib/_tools/scaffold/strided-unary/data/lib/ndarray__native__js.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ function {{ALIAS}}( N, dtypeX, x, strideX, offsetX, dtypeY, y, strideY, offsetY
7676
t2 = enumerate( dtypeY );
7777

7878
// WARNING: we assume that, if we're provided something resembling a typed array, we're provided a typed array; however, this can lead to potential unintended errors as the native add-on cannot work with non-typed array objects (e.g., generic arrays)...
79-
if ( t1 === void 0 || t2 === void 0 || !isTypedArrayLike( x ) || !isTypedArrayLike( y ) ) {
80-
return js( N, dtypeX, x, strideX, offsetX, dtypeY, y, strideY, offsetY );
79+
if ( t1 === void 0 || t2 === void 0 || !isTypedArrayLike( x ) || !isTypedArrayLike( y ) ) { // eslint-disable-line max-len
80+
return js( N, dtypeX, x, strideX, offsetX, dtypeY, y, strideY, offsetY ); // eslint-disable-line max-len
8181
}
8282
if ( !isNonNegativeInteger( offsetX ) ) {
8383
throw new TypeError( 'invalid argument. Input array offset argument must be a nonnegative integer.' );

0 commit comments

Comments
 (0)