Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ var rule;

// FUNCTIONS //

/**
* Copies AST node location info.
*
* @private
* @param {Object} loc - AST node location
* @returns {Object} copied location info
*/
function copyLocationInfo( loc ) {
return {
'start': {
'line': loc.start.line,
'column': loc.start.column
},
'end': {
'line': loc.end.line,
'column': loc.end.column
}
};
}

/**
* Rule to prevent unnecessary indentation of Markdown list item bullets in JSDoc descriptions.
*
Expand Down Expand Up @@ -112,26 +132,6 @@ function main( context ) {
}
}

/**
* Copies AST node location info.
*
* @private
* @param {Object} loc - AST node location
* @returns {Object} copied location info
*/
function copyLocationInfo( loc ) {
return {
'start': {
'line': loc.start.line,
'column': loc.start.column
},
'end': {
'line': loc.end.line,
'column': loc.end.column
}
};
}

/**
* Reports an error message.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
function command( pres ) {
return onCommand;

/**
* Callback invoked upon a `drain` event.
*
* @private
*/
function onDrain() {
pres.lastFragment().show();
}

/**
* Jumps to the last fragment of the current slide.
*
* @private
*/
function onCommand() {
pres._repl.once( 'drain', onDrain ); // eslint-disable-line no-underscore-dangle

/**
* Callback invoked upon a `drain` event.
*
* @private
*/
function onDrain() {
pres.lastFragment().show();
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/utils/timeit/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
var cwd = require( '@stdlib/process/cwd' );
var format = require( '@stdlib/string/format' );
var nextTick = require( '@stdlib/utils/next-tick' );
var nulls = require( '@stdlib/array/base/nulls' );
var defaults = require( './defaults.json' );
var validate = require( './validate.js' );
var evaluate = require( './vm_evaluate.js' );
Expand All @@ -35,7 +36,7 @@

// VARIABLES //

var FILENAME = 'timeit.js';

Check warning on line 39 in lib/node_modules/@stdlib/utils/timeit/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "timeit"
var MIN_TIME = 0.1; // seconds
var ITERATIONS = 10; // 10^1
var MAX_ITERATIONS = 10000000000; // 10^10
Expand Down Expand Up @@ -100,7 +101,7 @@
if ( !isFunction( cb ) ) {
throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', cb ) );
}
results = new Array( opts.repeats );
results = nulls( opts.repeats );
dir = cwd();
idx = 0;

Expand Down Expand Up @@ -213,7 +214,7 @@
if ( !error ) {
out = transform( results, opts.iterations );
}
// Avoid releasing the zalgo:

Check warning on line 217 in lib/node_modules/@stdlib/utils/timeit/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "zalgo"
nextTick( onTick );

/**
Expand Down
Loading