feat!: bump internal abi to 15

This commit is contained in:
Amaan Qureshi 2024-10-26 01:12:01 -04:00
parent 413b7cbcca
commit ce93d8fd9b
6 changed files with 6 additions and 20 deletions

View file

@ -11,7 +11,6 @@ extern "C" {
#define ts_builtin_sym_error_repeat (ts_builtin_sym_error - 1)
#define LANGUAGE_VERSION_WITH_PRIMARY_STATES 14
#define LANGUAGE_VERSION_USABLE_VIA_WASM 13
typedef struct {
const TSParseAction *actions;

View file

@ -1201,12 +1201,6 @@ const TSLanguage *ts_wasm_store_load_language(
const uint8_t *memory = wasmtime_memory_data(context, &self->memory);
memcpy(&wasm_language, &memory[language_address], sizeof(LanguageInWasmMemory));
if (wasm_language.version < LANGUAGE_VERSION_USABLE_VIA_WASM) {
wasm_error->kind = TSWasmErrorKindInstantiate;
format(&wasm_error->message, "language version %u is too old for wasm", wasm_language.version);
goto error;
}
int32_t addresses[] = {
wasm_language.alias_map,
wasm_language.alias_sequences,