From 2d48d4db899813ec1df1aa02b8c6ee9dd82bcf18 Mon Sep 17 00:00:00 2001 From: Kyuhwan Lee <145569428+wtdlee@users.noreply.github.com> Date: Fri, 26 Dec 2025 21:35:44 +0900 Subject: [PATCH] Update lib/binding_web/src/language.ts Co-authored-by: ObserverOfTime --- lib/binding_web/src/language.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/binding_web/src/language.ts b/lib/binding_web/src/language.ts index a8a5d6fe..39623f1a 100644 --- a/lib/binding_web/src/language.ts +++ b/lib/binding_web/src/language.ts @@ -270,7 +270,7 @@ export class Language { // Early version compatibility check const version = language.abiVersion; if (version < MIN_COMPATIBLE_VERSION || LANGUAGE_VERSION < version) { - throw new Error( + throw new RangeError( `Incompatible language version ${version}. ` + `Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}. ` + `The WASM file may have been built with an incompatible version of tree-sitter-cli. ` +