Skip to content
Open
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the desired change. Instead, you should restore the original example and simply disable the lint rule above the 'use strict' directive.

Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@

'use strict';

var resolve = require( 'path' ).resolve;
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var tryRequire = require( '@stdlib/utils/try-require' );
var compile = require( './../lib' );

var compile = tryRequire( resolve( __dirname, '..', 'lib' ) );
if ( compile instanceof Error ) {
console.log( 'Unable to run example. Unsupported environment.' );
} else {
main();
}
main();

function main() {
// Create an array of random coefficients:
Expand Down