fix(wasm): fix alias map size computation
This fixes a crash where parsing with certain languages can lead to a crash due to how the alias map was allocated and laid out in wasm memory
This commit is contained in:
parent
f222db57ce
commit
f09dc3cf46
7 changed files with 80 additions and 26 deletions
|
|
@ -30,7 +30,7 @@ void tree_sitter_external_tokens_external_scanner_destroy(void *payload) {
|
|||
unsigned tree_sitter_external_tokens_external_scanner_serialize(
|
||||
void *payload,
|
||||
char *buffer
|
||||
) { return true; }
|
||||
) { return 0; }
|
||||
|
||||
void tree_sitter_external_tokens_external_scanner_deserialize(
|
||||
void *payload,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue