Skip to content

Commit a20a816

Browse files
kgryteMeKaustubh07
authored andcommitted
fix: ensure correct this context when creating a new Module instance
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent bd2ee11 commit a20a816

File tree

2 files changed

+3
-7
lines changed
  • lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/lib

2 files changed

+3
-7
lines changed

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/lib/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,7 @@
8383

8484
// MODULES //
8585

86-
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
8786
var main = require( './main.js' );
88-
var Module = require( './module.js' );
89-
90-
91-
// MAIN //
92-
93-
setReadOnly( main, 'Module', Module );
9487

9588

9689
// EXPORTS //

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/lib/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
// MODULES //
2222

23+
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
2324
var Routine = require( './routine.js' );
25+
var Module = require( './module.js' );
2426

2527

2628
// MAIN //
@@ -52,6 +54,7 @@ var Routine = require( './routine.js' );
5254
* // returns 6.25
5355
*/
5456
var dnanvariancewd = new Routine();
57+
setReadOnly( dnanvariancewd, 'Module', Module );
5558
dnanvariancewd.initializeSync(); // eslint-disable-line node/no-sync
5659

5760

0 commit comments

Comments
 (0)