binding_web: Call correct function to reset parser

This commit is contained in:
Douglas Creager 2021-05-03 14:25:57 -04:00
parent fe5a29a1c6
commit 04c2aa973b
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",