Merge pull request #1089 from tree-sitter/wasm-fix

binding_web: Call correct function to reset parser
This commit is contained in:
Max Brunsfeld 2021-05-03 11:47:05 -07:00 committed by GitHub
commit 335190cc1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -123,7 +123,7 @@ class Parser {
}
reset() {
C._ts_parser_parse_wasm(this[0]);
C._ts_parser_reset(this[0]);
}
setTimeoutMicros(timeout) {

View file

@ -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",