Web bindings: fix descendantsOfType memory allocation
@@ -362,7 +362,7 @@ class Node {
}
// Copy the array of symbols to the WASM heap.
- const symbolsAddress = C._malloc(SIZE_OF_INT * symbols.count);
+ const symbolsAddress = C._malloc(SIZE_OF_INT * symbols.length);
for (let i = 0, n = symbols.length; i < n; i++) {
setValue(symbolsAddress + i * SIZE_OF_INT, symbols[i], 'i32');
}
