Update lib/binding_web/src/language.ts

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
Kyuhwan Lee 2025-12-26 21:35:44 +09:00 committed by GitHub
parent baf427467c
commit 2d48d4db89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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. ` +