Fix exporting get/set timeout in web binding (#592)
* Fix exporting get/set timeout in web binding Add two symbols "_ts_parser_set_timeout_micros", "_ts_parser_timeout_micros" due to usage in `tree-sitter.js`. * Fix getTimeoutMicros() not returning the value
This commit is contained in:
parent
4c0fa297d8
commit
1635aab801
2 changed files with 4 additions and 2 deletions
|
|
@ -129,8 +129,8 @@ class Parser {
|
|||
C._ts_parser_set_timeout_micros(this[0], timeout);
|
||||
}
|
||||
|
||||
getTimeoutMicros(timeout) {
|
||||
C._ts_parser_timeout_micros(this[0]);
|
||||
getTimeoutMicros() {
|
||||
return C._ts_parser_timeout_micros(this[0]);
|
||||
}
|
||||
|
||||
setLogger(callback) {
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@
|
|||
"_ts_parser_new_wasm",
|
||||
"_ts_parser_parse_wasm",
|
||||
"_ts_parser_set_language",
|
||||
"_ts_parser_set_timeout_micros",
|
||||
"_ts_parser_timeout_micros",
|
||||
"_ts_query_capture_count",
|
||||
"_ts_query_capture_name_for_id",
|
||||
"_ts_query_captures_wasm",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue