@noir-lang/acvm_js
Advanced tools
Comparing version 0.28.0-6e2b70a to 0.28.0-88682da
@@ -164,6 +164,2 @@ /* tslint:disable */ | ||
export type LogLevel = "OFF" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE"; | ||
export type ExecutionError = Error & { | ||
@@ -175,2 +171,6 @@ callStack?: string[]; | ||
export type LogLevel = "OFF" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE"; | ||
// Map from witness index to hex string value of witness. | ||
@@ -177,0 +177,0 @@ export type WitnessMap = Map<number, string>; |
@@ -6,20 +6,2 @@ let imports = {}; | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachedUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
} | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
const heap = new Array(128).fill(undefined); | ||
@@ -29,2 +11,4 @@ | ||
function getObject(idx) { return heap[idx]; } | ||
let heap_next = heap.length; | ||
@@ -41,4 +25,2 @@ | ||
function getObject(idx) { return heap[idx]; } | ||
function dropObject(idx) { | ||
@@ -56,2 +38,20 @@ if (idx < 132) return; | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachedUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
} | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function isLikeNone(x) { | ||
@@ -634,7 +634,2 @@ return x === undefined || x === null; | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
@@ -649,2 +644,17 @@ const ret = getObject(arg0); | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
}; | ||
module.exports.__wbg_wasmblackboxfunctionsolver_new = function(arg0) { | ||
@@ -672,5 +682,5 @@ const ret = WasmBlackBoxFunctionSolver.__wrap(arg0); | ||
module.exports.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
module.exports.__wbg_constructor_bd5b3ba6619fce81 = function(arg0) { | ||
const ret = new Error(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -687,7 +697,2 @@ | ||
module.exports.__wbg_constructor_bd5b3ba6619fce81 = function(arg0) { | ||
const ret = new Error(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_cb_drop = function(arg0) { | ||
@@ -713,7 +718,2 @@ const obj = takeObject(arg0).original; | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_abda76e883ba8a5f = function() { | ||
@@ -1202,4 +1202,4 @@ const ret = new Error(); | ||
module.exports.__wbindgen_closure_wrapper613 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_54); | ||
module.exports.__wbindgen_closure_wrapper605 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 193, __wbg_adapter_54); | ||
return addHeapObject(ret); | ||
@@ -1206,0 +1206,0 @@ }; |
{ | ||
"name": "@noir-lang/acvm_js", | ||
"version": "0.28.0-6e2b70a", | ||
"version": "0.28.0-88682da", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -164,6 +164,2 @@ /* tslint:disable */ | ||
export type LogLevel = "OFF" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE"; | ||
export type ExecutionError = Error & { | ||
@@ -175,2 +171,6 @@ callStack?: string[]; | ||
export type LogLevel = "OFF" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE"; | ||
// Map from witness index to hex string value of witness. | ||
@@ -177,0 +177,0 @@ export type WitnessMap = Map<number, string>; |
let wasm; | ||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); | ||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; | ||
let cachedUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
} | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
const heap = new Array(128).fill(undefined); | ||
@@ -25,2 +7,4 @@ | ||
function getObject(idx) { return heap[idx]; } | ||
let heap_next = heap.length; | ||
@@ -37,4 +21,2 @@ | ||
function getObject(idx) { return heap[idx]; } | ||
function dropObject(idx) { | ||
@@ -52,2 +34,20 @@ if (idx < 132) return; | ||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); | ||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; | ||
let cachedUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
} | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function isLikeNone(x) { | ||
@@ -662,6 +662,2 @@ return x === undefined || x === null; | ||
imports.wbg = {}; | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) { | ||
@@ -674,2 +670,14 @@ const ret = getObject(arg0); | ||
}; | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) { | ||
@@ -693,5 +701,5 @@ const ret = WasmBlackBoxFunctionSolver.__wrap(arg0); | ||
}; | ||
imports.wbg.__wbindgen_is_array = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
imports.wbg.__wbg_constructor_bd5b3ba6619fce81 = function(arg0) { | ||
const ret = new Error(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -706,6 +714,2 @@ imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
}; | ||
imports.wbg.__wbg_constructor_bd5b3ba6619fce81 = function(arg0) { | ||
const ret = new Error(takeObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_cb_drop = function(arg0) { | ||
@@ -728,6 +732,2 @@ const obj = takeObject(arg0).original; | ||
}; | ||
imports.wbg.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_new_abda76e883ba8a5f = function() { | ||
@@ -1131,4 +1131,4 @@ const ret = new Error(); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper613 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_54); | ||
imports.wbg.__wbindgen_closure_wrapper605 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 193, __wbg_adapter_54); | ||
return addHeapObject(ret); | ||
@@ -1135,0 +1135,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5866733