@biomejs/wasm-web
Advanced tools
Comparing version 1.8.4-nightly.bd1d0c6 to 1.8.4-nightly.d079e53
@@ -27,29 +27,20 @@ let wasm; | ||
let cachedFloat64Memory0 = null; | ||
let cachedDataViewMemory0 = null; | ||
function getFloat64Memory0() { | ||
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) { | ||
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer); | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedFloat64Memory0; | ||
return cachedDataViewMemory0; | ||
} | ||
let cachedInt32Memory0 = null; | ||
function getInt32Memory0() { | ||
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { | ||
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); | ||
} | ||
return cachedInt32Memory0; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
let cachedUint8Memory0 = null; | ||
let cachedUint8ArrayMemory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
function getUint8ArrayMemory0() { | ||
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { | ||
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
return cachedUint8ArrayMemory0; | ||
} | ||
@@ -77,3 +68,3 @@ | ||
const ptr = malloc(buf.length, 1) >>> 0; | ||
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); | ||
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); | ||
WASM_VECTOR_LEN = buf.length; | ||
@@ -86,3 +77,3 @@ return ptr; | ||
const mem = getUint8Memory0(); | ||
const mem = getUint8ArrayMemory0(); | ||
@@ -102,3 +93,3 @@ let offset = 0; | ||
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; | ||
const view = getUint8Memory0().subarray(ptr + offset, ptr + len); | ||
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); | ||
const ret = encodeString(arg, view); | ||
@@ -129,14 +120,5 @@ | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
} | ||
let cachedBigInt64Memory0 = null; | ||
function getBigInt64Memory0() { | ||
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) { | ||
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer); | ||
} | ||
return cachedBigInt64Memory0; | ||
} | ||
function debugString(val) { | ||
@@ -222,3 +204,3 @@ // primitive types | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0)); | ||
: new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0, 1)); | ||
/** | ||
@@ -237,3 +219,3 @@ */ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_diagnosticprinter_free(ptr); | ||
wasm.__wbg_diagnosticprinter_free(ptr, 0); | ||
} | ||
@@ -251,2 +233,3 @@ /** | ||
this.__wbg_ptr = ret >>> 0; | ||
DiagnosticPrinterFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
@@ -261,4 +244,4 @@ } | ||
wasm.diagnosticprinter_print_simple(retptr, this.__wbg_ptr, addHeapObject(diagnostic)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
if (r1) { | ||
@@ -278,4 +261,4 @@ throw takeObject(r0); | ||
wasm.diagnosticprinter_print_verbose(retptr, this.__wbg_ptr, addHeapObject(diagnostic)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
if (r1) { | ||
@@ -298,6 +281,6 @@ throw takeObject(r0); | ||
wasm.diagnosticprinter_finish(retptr, ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true); | ||
var ptr1 = r0; | ||
@@ -321,3 +304,3 @@ var len1 = r1; | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0)); | ||
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1)); | ||
/** | ||
@@ -336,3 +319,3 @@ */ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_workspace_free(ptr); | ||
wasm.__wbg_workspace_free(ptr, 0); | ||
} | ||
@@ -344,2 +327,3 @@ /** | ||
this.__wbg_ptr = ret >>> 0; | ||
WorkspaceFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
@@ -355,5 +339,5 @@ } | ||
wasm.workspace_fileFeatures(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -374,4 +358,4 @@ throw takeObject(r1); | ||
wasm.workspace_updateSettings(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
if (r1) { | ||
@@ -392,5 +376,5 @@ throw takeObject(r0); | ||
wasm.workspace_registerProjectFolder(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -411,4 +395,4 @@ throw takeObject(r1); | ||
wasm.workspace_openFile(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
if (r1) { | ||
@@ -431,6 +415,6 @@ throw takeObject(r0); | ||
wasm.workspace_getFileContent(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true); | ||
var ptr1 = r0; | ||
@@ -458,5 +442,5 @@ var len1 = r1; | ||
wasm.workspace_getSyntaxTree(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -480,6 +464,6 @@ throw takeObject(r1); | ||
wasm.workspace_getControlFlowGraph(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true); | ||
var ptr1 = r0; | ||
@@ -509,6 +493,6 @@ var len1 = r1; | ||
wasm.workspace_getFormatterIr(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true); | ||
var ptr1 = r0; | ||
@@ -535,4 +519,4 @@ var len1 = r1; | ||
wasm.workspace_changeFile(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
if (r1) { | ||
@@ -552,4 +536,4 @@ throw takeObject(r0); | ||
wasm.workspace_closeFile(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
if (r1) { | ||
@@ -570,5 +554,5 @@ throw takeObject(r0); | ||
wasm.workspace_pullDiagnostics(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -590,5 +574,5 @@ throw takeObject(r1); | ||
wasm.workspace_pullActions(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -610,5 +594,5 @@ throw takeObject(r1); | ||
wasm.workspace_formatFile(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -630,5 +614,5 @@ throw takeObject(r1); | ||
wasm.workspace_formatRange(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -650,5 +634,5 @@ throw takeObject(r1); | ||
wasm.workspace_formatOnType(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -670,5 +654,5 @@ throw takeObject(r1); | ||
wasm.workspace_fixFile(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -690,5 +674,5 @@ throw takeObject(r1); | ||
wasm.workspace_organizeImports(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -710,5 +694,5 @@ throw takeObject(r1); | ||
wasm.workspace_rename(retptr, this.__wbg_ptr, addHeapObject(params)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
@@ -781,4 +765,4 @@ throw takeObject(r1); | ||
const ret = typeof(obj) === 'number' ? obj : undefined; | ||
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret; | ||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); | ||
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); | ||
}; | ||
@@ -790,4 +774,4 @@ imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
var len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
@@ -850,4 +834,4 @@ imports.wbg.__wbindgen_is_object = function(arg0) { | ||
const len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
@@ -862,4 +846,4 @@ imports.wbg.__wbg_new_abda76e883ba8a5f = function() { | ||
const len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
@@ -881,58 +865,58 @@ imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { | ||
}; | ||
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) { | ||
imports.wbg.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) { | ||
imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() { | ||
imports.wbg.__wbg_new_a220cf903aa02ca2 = function() { | ||
const ret = new Array(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_d9bc3a0147634640 = function() { | ||
imports.wbg.__wbg_new_8608a2b51a5f6737 = function() { | ||
const ret = new Map(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) { | ||
imports.wbg.__wbg_next_de3e9db4440638b2 = function(arg0) { | ||
const ret = getObject(arg0).next; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) { | ||
imports.wbg.__wbg_next_f9cb570345655b9a = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).next(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) { | ||
imports.wbg.__wbg_done_bfda7aa8f252b39f = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) { | ||
imports.wbg.__wbg_value_6d39332ab4788d86 = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() { | ||
imports.wbg.__wbg_iterator_888179a48810a9fe = function() { | ||
const ret = Symbol.iterator; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) { | ||
imports.wbg.__wbg_get_224d16597dbbfd96 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) { | ||
imports.wbg.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() { | ||
imports.wbg.__wbg_new_525245e2b9901204 = function() { | ||
const ret = new Object(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) { | ||
imports.wbg.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[arg1 >>> 0] = takeObject(arg2); | ||
}; | ||
imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) { | ||
imports.wbg.__wbg_isArray_8364a5371e9737d8 = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) { | ||
imports.wbg.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) { | ||
let result; | ||
@@ -947,7 +931,7 @@ try { | ||
}; | ||
imports.wbg.__wbg_new_28c511d9baebfa89 = function(arg0, arg1) { | ||
imports.wbg.__wbg_new_796382978dfd4fb0 = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) { | ||
imports.wbg.__wbg_instanceof_Map_763ce0e95960d55e = function(arg0) { | ||
let result; | ||
@@ -962,30 +946,30 @@ try { | ||
}; | ||
imports.wbg.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) { | ||
imports.wbg.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) { | ||
imports.wbg.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) { | ||
const ret = Number.isSafeInteger(getObject(arg0)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_entries_95cc2c823b285a09 = function(arg0) { | ||
imports.wbg.__wbg_entries_7a0e06255456ebcd = function(arg0) { | ||
const ret = Object.entries(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) { | ||
imports.wbg.__wbg_buffer_b7b08af79b0b0974 = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) { | ||
imports.wbg.__wbg_new_ea1883e1e5e86686 = function(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) { | ||
imports.wbg.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
}; | ||
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) { | ||
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) { | ||
imports.wbg.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) { | ||
let result; | ||
@@ -1003,4 +987,4 @@ try { | ||
const ret = typeof(v) === 'bigint' ? v : undefined; | ||
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret; | ||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); | ||
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); | ||
}; | ||
@@ -1011,4 +995,4 @@ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { | ||
const len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
@@ -1026,3 +1010,3 @@ imports.wbg.__wbindgen_throw = function(arg0, arg1) { | ||
function __wbg_init_memory(imports, maybe_memory) { | ||
function __wbg_init_memory(imports, memory) { | ||
@@ -1034,7 +1018,6 @@ } | ||
__wbg_init.__wbindgen_wasm_module = module; | ||
cachedBigInt64Memory0 = null; | ||
cachedFloat64Memory0 = null; | ||
cachedInt32Memory0 = null; | ||
cachedUint8Memory0 = null; | ||
cachedDataViewMemory0 = null; | ||
cachedUint8ArrayMemory0 = null; | ||
wasm.__wbindgen_start(); | ||
@@ -1047,2 +1030,8 @@ return wasm; | ||
if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype) | ||
({module} = module) | ||
else | ||
console.warn('using deprecated parameters for `initSync()`; pass a single object instead') | ||
const imports = __wbg_get_imports(); | ||
@@ -1061,12 +1050,18 @@ | ||
async function __wbg_init(input) { | ||
async function __wbg_init(module_or_path) { | ||
if (wasm !== undefined) return wasm; | ||
if (typeof input === 'undefined') { | ||
input = new URL('biome_wasm_bg.wasm', import.meta.url); | ||
if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype) | ||
({module_or_path} = module_or_path) | ||
else | ||
console.warn('using deprecated parameters for the initialization function; pass a single object instead') | ||
if (typeof module_or_path === 'undefined') { | ||
module_or_path = new URL('biome_wasm_bg.wasm', import.meta.url); | ||
} | ||
const imports = __wbg_get_imports(); | ||
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { | ||
input = fetch(input); | ||
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { | ||
module_or_path = fetch(module_or_path); | ||
} | ||
@@ -1076,3 +1071,3 @@ | ||
const { instance, module } = await __wbg_load(await input, imports); | ||
const { instance, module } = await __wbg_load(await module_or_path, imports); | ||
@@ -1082,3 +1077,3 @@ return __wbg_finalize_init(instance, module); | ||
export { initSync } | ||
export { initSync }; | ||
export default __wbg_init; |
@@ -8,3 +8,3 @@ { | ||
"description": "WebAssembly bindings to the Biome workspace API", | ||
"version": "1.8.4-nightly.bd1d0c6", | ||
"version": "1.8.4-nightly.d079e53", | ||
"license": "MIT OR Apache-2.0", | ||
@@ -11,0 +11,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13458207
3971