Skip to content

Commit be4784c

Browse files
committed
Use utility for defining properties
1 parent 8086af6 commit be4784c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/node_modules/@stdlib/array/to-json/test/fixtures/custom.proto.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var Float64Array = require( '@stdlib/array/float64' );
24+
var defineProperty = require( '@stdlib/utils/define-property' );
25+
26+
27+
// MAIN //
28+
2129
/**
2230
* Creates a CustomTypedArray class.
2331
*
@@ -42,7 +50,7 @@ function createClass( ctor ) {
4250
for ( i = 0; i < data.length; i++ ) {
4351
this[ i ] = data[ i ];
4452
}
45-
Object.defineProperty( this, 'length', {
53+
defineProperty( this, 'length', {
4654
'configurable': false,
4755
'enumerable': true,
4856
'writable': false,

0 commit comments

Comments
 (0)