From 622976d4e67598e093f3b0660b69c3ce82d7c616 Mon Sep 17 00:00:00 2001 From: toyobayashi Date: Mon, 30 Oct 2023 17:57:27 +0800 Subject: [PATCH] 1 --- packages/test/emnapitest/emnapi.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/test/emnapitest/emnapi.test.js b/packages/test/emnapitest/emnapi.test.js index 6f92a9bf..e6e6f595 100644 --- a/packages/test/emnapitest/emnapi.test.js +++ b/packages/test/emnapitest/emnapi.test.js @@ -21,7 +21,7 @@ module.exports = promise.then(test_typedarray => { assert.ok(externalResult instanceof Uint8Array) assert.deepStrictEqual([...externalResult], [0, 1, 2]) const oldSize = test_typedarray.GetWasmMemorySize() - test_typedarray.GrowMemory(0) + test_typedarray.GrowMemory(1) const newSize = test_typedarray.GetWasmMemorySize() console.log(`memory grow: ${oldSize} --> ${newSize} (+${newSize - oldSize})`) if (process.env.EMNAPI_TEST_WASI || process.env.EMNAPI_TEST_WASM32) {