Skip to content

Commit a86283f

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 08eb445 commit a86283f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/node_modules/@stdlib/blas/ext/base/wasm/dapx/lib/index.js

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

8787
// MODULES //
8888

89-
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
9089
var main = require( './main.js' );
91-
var Module = require( './module.js' );
92-
93-
94-
// MAIN //
95-
96-
setReadOnly( main, 'Module', Module );
9790

9891

9992
// EXPORTS //

lib/node_modules/@stdlib/blas/ext/base/wasm/dapx/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 //
@@ -53,6 +55,7 @@ var Routine = require( './routine.js' );
5355
*/
5456
var dapx = new Routine();
5557
dapx.initializeSync(); // eslint-disable-line node/no-sync
58+
setReadOnly( dapx, 'Module', Module.bind( null ) );
5659

5760

5861
// EXPORTS //

0 commit comments

Comments
 (0)