From a5732045e2509e0cd7e948994024cc120d7960e1 Mon Sep 17 00:00:00 2001 From: Piyush Date: Wed, 17 Dec 2025 20:20:55 +0530 Subject: [PATCH 1/2] feat: add constants/wasm and constants/wasm/page-size --- 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: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - 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: passed - task: lint_license_headers status: passed --- --- .../@stdlib/constants/wasm/README.md | 95 +++++++++++++++++++ .../constants/wasm/docs/types/index.d.ts | 47 +++++++++ .../constants/wasm/docs/types/tests.ts | 29 ++++++ .../@stdlib/constants/wasm/examples/index.js | 24 +++++ .../@stdlib/constants/wasm/lib/index.js | 52 ++++++++++ .../@stdlib/constants/wasm/package.json | 60 ++++++++++++ .../constants/wasm/page-size/README.md | 90 ++++++++++++++++++ .../constants/wasm/page-size/docs/repl.txt | 12 +++ .../wasm/page-size/docs/types/index.d.ts | 35 +++++++ .../wasm/page-size/docs/types/test.ts | 28 ++++++ .../wasm/page-size/examples/index.js | 27 ++++++ .../constants/wasm/page-size/lib/index.js | 45 +++++++++ .../constants/wasm/page-size/package.json | 62 ++++++++++++ .../constants/wasm/page-size/test/test.js | 38 ++++++++ .../@stdlib/constants/wasm/test/test.js | 40 ++++++++ .../module-wrapper/benchmark/benchmark.js | 3 +- 16 files changed, 686 insertions(+), 1 deletion(-) create mode 100644 lib/node_modules/@stdlib/constants/wasm/README.md create mode 100644 lib/node_modules/@stdlib/constants/wasm/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/constants/wasm/docs/types/tests.ts create mode 100644 lib/node_modules/@stdlib/constants/wasm/examples/index.js create mode 100644 lib/node_modules/@stdlib/constants/wasm/lib/index.js create mode 100644 lib/node_modules/@stdlib/constants/wasm/package.json create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/README.md create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/examples/index.js create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/lib/index.js create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/package.json create mode 100644 lib/node_modules/@stdlib/constants/wasm/page-size/test/test.js create mode 100644 lib/node_modules/@stdlib/constants/wasm/test/test.js diff --git a/lib/node_modules/@stdlib/constants/wasm/README.md b/lib/node_modules/@stdlib/constants/wasm/README.md new file mode 100644 index 000000000000..6bb7bf40ba0d --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/README.md @@ -0,0 +1,95 @@ + + +# Constants + +> WebAssembly constants. + +
+ +## Usage + +```javascript +var constants = require( '@stdlib/constants/wasm' ); +``` + +#### constants + +WebAssembly constants. + +```javascript +var ns = constants; +// returns {...} +``` + + + +
+ +- [`PAGE_SIZE`][@stdlib/constants/wasm/page-size]: WebAssembly memory page size (in bytes). + +
+ + + +
+ + + +
+ +## Examples + + + + + +```javascript +var objectKeys = require( '@stdlib/utils/keys' ); +var constants = require( '@stdlib/constants/wasm' ); + +console.log( objectKeys( constants ) ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/constants/wasm/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/wasm/docs/types/index.d.ts new file mode 100644 index 000000000000..1d83619dc572 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/docs/types/index.d.ts @@ -0,0 +1,47 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/* eslint-disable max-lines */ + +import PAGE_SIZE = require( '@stdlib/constants/wasm/page-size' ); + +/** +* Interface describing the `wasm` namespace. +*/ +interface Namespace { + /** + * WebAssembly memory page size (in bytes). + * + * @example + * var n = ns.PAGE_SIZE; + * // returns 65536 + */ + PAGE_SIZE: typeof PAGE_SIZE; +} + +/** +* WebAssembly constants. +*/ +declare var ns: Namespace; + + +// EXPORTS // + +export = ns; diff --git a/lib/node_modules/@stdlib/constants/wasm/docs/types/tests.ts b/lib/node_modules/@stdlib/constants/wasm/docs/types/tests.ts new file mode 100644 index 000000000000..1a38cb7de9b0 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/docs/types/tests.ts @@ -0,0 +1,29 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable @typescript-eslint/no-unused-expressions */ + +import ns = require( './index' ); + + +// TESTS // + +// The exported value is the expected interface... +{ + ns; // $ExpectType Namespace +} diff --git a/lib/node_modules/@stdlib/constants/wasm/examples/index.js b/lib/node_modules/@stdlib/constants/wasm/examples/index.js new file mode 100644 index 000000000000..f5349d26ce9b --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/examples/index.js @@ -0,0 +1,24 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var objectKeys = require( '@stdlib/utils/keys' ); +var ns = require( './../lib' ); + +console.log( objectKeys( ns ) ); diff --git a/lib/node_modules/@stdlib/constants/wasm/lib/index.js b/lib/node_modules/@stdlib/constants/wasm/lib/index.js new file mode 100644 index 000000000000..5aceb5eef759 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/lib/index.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/* +* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. +*/ + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); + + +// MAIN // + +/** +* Top-level namespace. +* +* @namespace ns +*/ +var ns = {}; + +/** +* @name PAGE_SIZE +* @memberof ns +* @readonly +* @constant +* @type {number} +* @see {@link module:@stdlib/constants/wasm/page-size} +*/ +setReadOnly( ns, 'PAGE_SIZE', require( '@stdlib/constants/wasm/page-size' ) ); + + +// EXPORTS // + +module.exports = ns; diff --git a/lib/node_modules/@stdlib/constants/wasm/package.json b/lib/node_modules/@stdlib/constants/wasm/package.json new file mode 100644 index 000000000000..03866005ba64 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/package.json @@ -0,0 +1,60 @@ +{ + "name": "@stdlib/constants/wasm", + "version": "0.0.0", + "description": "WebAssembly constants.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "lib/index.js", + "directories": { + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdtypes", + "constants", + "const", + "webassembly", + "wasm", + "namespace", + "ns" + ] +} diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/README.md b/lib/node_modules/@stdlib/constants/wasm/page-size/README.md new file mode 100644 index 000000000000..1c23015eab71 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/README.md @@ -0,0 +1,90 @@ + + +# PAGE_SIZE + +> WebAssembly memory page size (in bytes). + +
+ +## Usage + +```javascript +var PAGE_SIZE = require( '@stdlib/constants/wasm/page-size' ); +``` + +#### PAGE_SIZE + +WebAssembly memory page size (in bytes). + +```javascript +var n = PAGE_SIZE; +// returns 65536 +``` + +
+ + + +
+ +## Examples + + + +```javascript +var PAGE_SIZE = require( '@stdlib/constants/wasm/page-size' ); + +// Allocate enough bytes for two WebAssembly memory pages: +var bytes = 2 * PAGE_SIZE; +// returns 131072 +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/docs/repl.txt b/lib/node_modules/@stdlib/constants/wasm/page-size/docs/repl.txt new file mode 100644 index 000000000000..4624094dc6cb --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/docs/repl.txt @@ -0,0 +1,12 @@ + +{{alias}} + WebAssembly memory page size (in bytes). + + Examples + -------- + > {{alias}} + 65536 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/index.d.ts new file mode 100644 index 000000000000..1163608833ce --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/index.d.ts @@ -0,0 +1,35 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/// + +/** +* WebAssembly memory page size (in bytes). +* +* @example +* var PAGE_SIZE = PAGE_SIZE +* // returns 65536 +*/ +declare const PAGE_SIZE: number; + + +// EXPORTS // + +export = PAGE_SIZE; diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/test.ts b/lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/test.ts new file mode 100644 index 000000000000..a213a9e2a28a --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/docs/types/test.ts @@ -0,0 +1,28 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import PAGE_SIZE = require( './index' ); + + +// TESTS // + +// The export is a number... +{ + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + PAGE_SIZE; // $ExpectType number +} diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/examples/index.js b/lib/node_modules/@stdlib/constants/wasm/page-size/examples/index.js new file mode 100644 index 000000000000..548f7b7612d3 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/examples/index.js @@ -0,0 +1,27 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var PAGE_SIZE = require( './../lib' ); + +// Allocate enough bytes for two WebAssembly memory pages: +var bytes = 2 * PAGE_SIZE; + +console.log( bytes ); +// => 131072 diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/lib/index.js b/lib/node_modules/@stdlib/constants/wasm/page-size/lib/index.js new file mode 100644 index 000000000000..e4fdab0b6619 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/lib/index.js @@ -0,0 +1,45 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* WebAssembly memory page size (in bytes). +* +* @module @stdlib/constants/wasm/page-size +* @type {number} +* +* @example +* var PAGE_SIZE = require( '@stdlib/constants/wasm/page-size' ); +* // returns 65536 +*/ + +// MAIN // + +/** +* WebAssembly memory page size (in bytes). +* +* @constant +* @type {number} +*/ +var PAGE_SIZE = 64 * 1024; // 65536 bytes + + +// EXPORTS // + +module.exports = PAGE_SIZE; diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/package.json b/lib/node_modules/@stdlib/constants/wasm/page-size/package.json new file mode 100644 index 000000000000..d4a37d3cb9ce --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/package.json @@ -0,0 +1,62 @@ +{ + "name": "@stdlib/constants/wasm/page-size", + "version": "0.0.0", + "description": "WebAssembly memory page size (in bytes).", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "constant", + "const", + "wasm", + "webassembly", + "memory", + "page", + "page-size", + "bytes" + ] + +} diff --git a/lib/node_modules/@stdlib/constants/wasm/page-size/test/test.js b/lib/node_modules/@stdlib/constants/wasm/page-size/test/test.js new file mode 100644 index 000000000000..2a8070097f00 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/page-size/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var PAGE_SIZE = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a number', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof PAGE_SIZE, 'number', 'main export is a number' ); + t.end(); +}); + +tape( 'export is equal to WebAssembly page size', function test( t ) { + t.strictEqual( PAGE_SIZE, 64 * 1024, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/constants/wasm/test/test.js b/lib/node_modules/@stdlib/constants/wasm/test/test.js new file mode 100644 index 000000000000..85de573de8c2 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/wasm/test/test.js @@ -0,0 +1,40 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var objectKeys = require( '@stdlib/utils/keys' ); +var ns = require( './../lib' ); + + +// TESTS // + +tape( 'main export is an object', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof ns, 'object', 'main export is an object' ); + t.end(); +}); + +tape( 'the exported object contains key-value pairs', function test( t ) { + var keys = objectKeys( ns ); + t.strictEqual( keys.length > 0, true, 'has keys' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/wasm/module-wrapper/benchmark/benchmark.js b/lib/node_modules/@stdlib/wasm/module-wrapper/benchmark/benchmark.js index 5d9091b8a9be..dc8244604494 100644 --- a/lib/node_modules/@stdlib/wasm/module-wrapper/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/wasm/module-wrapper/benchmark/benchmark.js @@ -21,13 +21,14 @@ // MODULES // var bench = require( '@stdlib/bench' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Module = require( './../lib' ); // MAIN // -bench( pkg+'::constructor', function benchmark( b ) { +bench( format( '%s::constructor', pkg ), function benchmark( b ) { var out; var i; From ce203ea316dc8a9535b7e21fc980ee6f445bfac1 Mon Sep 17 00:00:00 2001 From: Piyush Date: Wed, 17 Dec 2025 20:54:11 +0530 Subject: [PATCH 2/2] refactor: replace hardcoded page size with constants/wasm/page-size --- 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 --- --- lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js b/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js index 1653a9971200..18e5339ad9bd 100644 --- a/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js +++ b/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js @@ -44,7 +44,7 @@ var format = require( '@stdlib/string/format' ); // VARIABLES // var HAS_WASM_SUPPORT = hasWebAssemblySupport(); -var PAGE_SIZE = 64 * 1024; // 64KiB = size of 1 page // TODO: consider moving to `@stdlib/constants/wasm/page-size` +var PAGE_SIZE = require( '@stdlib/constants/wasm/page-size' ); // MAIN //