Merge pull request #1089 from tree-sitter/wasm-fix
binding_web: Call correct function to reset parser
This commit is contained in:
commit
335190cc1d
2 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ class Parser {
|
|||
}
|
||||
|
||||
reset() {
|
||||
C._ts_parser_parse_wasm(this[0]);
|
||||
C._ts_parser_reset(this[0]);
|
||||
}
|
||||
|
||||
setTimeoutMicros(timeout) {
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@
|
|||
"_ts_parser_enable_logger_wasm",
|
||||
"_ts_parser_new_wasm",
|
||||
"_ts_parser_parse_wasm",
|
||||
"_ts_parser_reset",
|
||||
"_ts_parser_set_language",
|
||||
"_ts_parser_set_timeout_micros",
|
||||
"_ts_parser_timeout_micros",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue