Skip to content

Commit b809219

Browse files
committed
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 bccfe25 commit b809219

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lib/node_modules/@stdlib/blas/base/wasm/cswap/lib/index.js

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

110110
// MODULES //
111111

112-
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
113112
var main = require( './main.js' );
114-
var Module = require( './module.js' );
115-
116-
117-
// MAIN //
118-
119-
setReadOnly( main, 'Module', Module );
120113

121114

122115
// EXPORTS //

lib/node_modules/@stdlib/blas/base/wasm/cswap/lib/main.js

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

2121
// MODULES //
2222

23+
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
24+
2325
var Routine = require( './routine.js' );
26+
var Module = require( './module.js' );
2427

2528

2629
// MAIN //
@@ -57,6 +60,7 @@ var Routine = require( './routine.js' );
5760
*/
5861
var cswap = new Routine();
5962
cswap.initializeSync(); // eslint-disable-line node/no-sync
63+
setReadOnly( cswap, 'Module', Module.bind( null ) );
6064

6165

6266
// EXPORTS //

0 commit comments

Comments
 (0)