Update lib/binding_web/src/language.ts
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
parent
baf427467c
commit
2d48d4db89
1 changed files with 1 additions and 1 deletions
|
|
@ -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. ` +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue