mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-19 16:01:23 +00:00
Mass rename anyref to externref (#2142)
Updates a mess of dependencies and tracks the most recent version of the reference types specification.
This commit is contained in:
@ -18,8 +18,8 @@ function getStringFromWasm0(ptr, len) {
|
||||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
||||
}
|
||||
|
||||
function addToAnyrefTable0(obj) {
|
||||
const idx = wasm.__anyref_table_alloc();
|
||||
function addToExternrefTable0(obj) {
|
||||
const idx = wasm.__externref_table_alloc();
|
||||
wasm.__wbindgen_export_0.set(idx, obj);
|
||||
return idx;
|
||||
}
|
||||
@ -30,7 +30,7 @@ function handleError(f) {
|
||||
return f.apply(this, arguments);
|
||||
|
||||
} catch (e) {
|
||||
const idx = addToAnyrefTable0(e);
|
||||
const idx = addToExternrefTable0(e);
|
||||
wasm.__wbindgen_exn_store(idx);
|
||||
}
|
||||
};
|
||||
@ -53,7 +53,7 @@ export const __wbindgen_rethrow = function(arg0) {
|
||||
throw arg0;
|
||||
};
|
||||
|
||||
export const __wbindgen_init_anyref_table = function() {
|
||||
export const __wbindgen_init_externref_table = function() {
|
||||
const table = wasm.__wbindgen_export_0;
|
||||
const offset = table.grow(4);
|
||||
table.set(0, undefined);
|
||||
|
Reference in New Issue
Block a user