Skip to content

Commit f29497c

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 d6938d5 commit f29497c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

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

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

103103
// MODULES //
104104

105-
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
106105
var main = require( './main.js' );
107-
var Module = require( './module.js' );
108-
109-
110-
// MAIN //
111-
112-
setReadOnly( main, 'Module', Module );
113106

114107

115108
// EXPORTS //

lib/node_modules/@stdlib/blas/base/wasm/dswap/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 dswap = new Routine();
5962
dswap.initializeSync(); // eslint-disable-line node/no-sync
63+
setReadOnly( dswap, 'Module', Module.bind( null ) );
6064

6165

6266
// EXPORTS //

0 commit comments

Comments
 (0)