diff --git a/lib/binding_web/binding.js b/lib/binding_web/binding.js index 96f6ef08..f52f61d5 100644 --- a/lib/binding_web/binding.js +++ b/lib/binding_web/binding.js @@ -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) { diff --git a/lib/binding_web/exports.json b/lib/binding_web/exports.json index 33fbad7a..2c638249 100644 --- a/lib/binding_web/exports.json +++ b/lib/binding_web/exports.json @@ -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",