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:
Alex Crichton
2020-05-18 09:36:30 -05:00
committed by GitHub
parent 61e8fc0d38
commit 996e92f3ae
65 changed files with 604 additions and 596 deletions

View File

@ -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);