Skip to content

Commit 0bf5d7a

Browse files
committed
Remove the memory.grow hack now that harfbuzzjs uses Emscripten and automatically grows the heap
1 parent 72ff88a commit 0bf5d7a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const loadAndInitializeHarfbuzz = _.once(async () => {
99
} = await WebAssembly.instantiate(
1010
await readFile(require.resolve('harfbuzzjs/hb-subset.wasm'))
1111
);
12-
exports.memory.grow(2000); // each page is 64kb in size
1312

1413
const heapu8 = new Uint8Array(exports.memory.buffer);
1514
return [exports, heapu8];

0 commit comments

Comments
 (0)