Skip to content

Commit e9406ad

Browse files
authored
chore: fix JavaScript lint errors
PR-URL: #8062 Closes: #8061 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 154dfc5 commit e9406ad

File tree

1 file changed

+28
-18
lines changed
  • lib/node_modules/@stdlib/utils/properties/benchmark

1 file changed

+28
-18
lines changed

lib/node_modules/@stdlib/utils/properties/benchmark/benchmark.js

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,41 @@ var pkg = require( './../package.json' ).name;
2828
var properties = require( './../lib' );
2929

3030

31+
// FUNCTIONS //
32+
33+
/**
34+
* Constructor function for creating benchmark test objects.
35+
*
36+
* @private
37+
* @constructor
38+
* @returns {Foo} Foo instance
39+
*/
40+
function Foo() {
41+
this.a = 'beep';
42+
this.b = 'boop';
43+
this.c = [ 1, 2, 3 ];
44+
this.d = {};
45+
this.e = null;
46+
this.f = randu();
47+
defineProperty( this, 'g', {
48+
'value': 'bar',
49+
'configurable': true,
50+
'writable': true,
51+
'enumerable': false
52+
});
53+
return this;
54+
}
55+
56+
Foo.prototype.h = [ 'foo' ];
57+
58+
3159
// MAIN //
3260

3361
bench( pkg, function benchmark( b ) {
3462
var out;
3563
var obj;
3664
var i;
3765

38-
function Foo() {
39-
this.a = 'beep';
40-
this.b = 'boop';
41-
this.c = [ 1, 2, 3 ];
42-
this.d = {};
43-
this.e = null;
44-
this.f = randu();
45-
defineProperty( this, 'g', {
46-
'value': 'bar',
47-
'configurable': true,
48-
'writable': true,
49-
'enumerable': false
50-
});
51-
return this;
52-
}
53-
54-
Foo.prototype.h = [ 'foo' ];
55-
5666
obj = new Foo();
5767

5868
b.tic();

0 commit comments

Comments
 (0)