feat!: bump internal abi to 15
This commit is contained in:
parent
413b7cbcca
commit
ce93d8fd9b
6 changed files with 6 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue