Merge pull request #989 from jmbockhorst/fix-descendants-of-type
Web bindings: fix descendantsOfType memory allocation
This commit is contained in:
commit
f3910c649e
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue