@noir-lang/noir_wasm
Advanced tools
Comparing version 0.16.0 to 0.17.0-86704ba.nightly
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export const memory: WebAssembly.Memory; | ||
export function compile(a: number): number; | ||
export function __wbg_compileerror_free(a: number): void; | ||
export function __wbg_get_compileerror_message(a: number): number; | ||
export function __wbg_set_compileerror_message(a: number, b: number): void; | ||
export function __wbg_get_compileerror_diagnostics(a: number): number; | ||
export function __wbg_set_compileerror_diagnostics(a: number, b: number): void; | ||
export function init_log_level(a: number, b: number): void; | ||
@@ -9,6 +13,7 @@ export function build_info(): number; | ||
export function acir_write_bytes(a: number, b: number): void; | ||
export function compile(a: number, b: number, c: number, d: number, e: number): void; | ||
export function __wbindgen_export_0(a: number): number; | ||
export function __wbindgen_export_1(a: number, b: number, c: number): number; | ||
export function __wbindgen_export_2(a: number): void; | ||
export function __wbindgen_add_to_stack_pointer(a: number): number; | ||
export function __wbindgen_export_3(a: number, b: number): void; | ||
export function __wbindgen_export_2(a: number, b: number): void; | ||
export function __wbindgen_export_3(a: number): void; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args: any): any; | ||
/** | ||
* @param {string} level | ||
@@ -26,1 +21,35 @@ */ | ||
export function acir_write_bytes(acir: any): Uint8Array; | ||
/** | ||
* @param {string} entry_point | ||
* @param {boolean | undefined} contracts | ||
* @param {string[] | undefined} dependencies | ||
* @returns {any} | ||
*/ | ||
export function compile(entry_point: string, contracts?: boolean, dependencies?: string[]): any; | ||
export type Diagnostic = { | ||
message: string; | ||
file_path: string; | ||
secondaries: ReadonlyArray<{ | ||
message: string; | ||
start: number; | ||
end: number; | ||
}>; | ||
} | ||
interface CompileError { | ||
diagnostics: ReadonlyArray<Diagnostic>; | ||
} | ||
/** | ||
*/ | ||
export class CompileError { | ||
free(): void; | ||
/** | ||
*/ | ||
diagnostics: any; | ||
/** | ||
*/ | ||
message: string; | ||
} |
@@ -5,3 +5,3 @@ let imports = {}; | ||
const { read_file } = require(`@noir-lang/source-resolver`); | ||
const { TextDecoder, TextEncoder } = require(`util`); | ||
const { TextEncoder, TextDecoder } = require(`util`); | ||
@@ -28,6 +28,13 @@ const heap = new Array(128).fill(undefined); | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
cachedTextDecoder.decode(); | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
let cachedUint8Memory0 = null; | ||
@@ -42,18 +49,2 @@ | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
let cachedTextEncoder = new TextEncoder('utf-8'); | ||
@@ -124,17 +115,10 @@ | ||
} | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
module.exports.compile = function(args) { | ||
const ret = wasm.compile(addHeapObject(args)); | ||
return takeObject(ret); | ||
}; | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
wasm.__wbindgen_export_2(addHeapObject(e)); | ||
} | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
@@ -190,3 +174,3 @@ /** | ||
var v1 = getArrayU8FromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_export_3(r0, r1 * 1); | ||
wasm.__wbindgen_export_2(r0, r1 * 1); | ||
return v1; | ||
@@ -198,10 +182,88 @@ } finally { | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
/** | ||
* @param {string} entry_point | ||
* @param {boolean | undefined} contracts | ||
* @param {string[] | undefined} dependencies | ||
* @returns {any} | ||
*/ | ||
module.exports.compile = function(entry_point, contracts, dependencies) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependencies) ? 0 : addHeapObject(dependencies)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
}; | ||
module.exports.__wbindgen_is_null = function(arg0) { | ||
const ret = getObject(arg0) === null; | ||
return ret; | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
wasm.__wbindgen_export_3(addHeapObject(e)); | ||
} | ||
} | ||
/** | ||
*/ | ||
class CompileError { | ||
static __wrap(ptr) { | ||
ptr = ptr >>> 0; | ||
const obj = Object.create(CompileError.prototype); | ||
obj.__wbg_ptr = ptr; | ||
return obj; | ||
} | ||
__destroy_into_raw() { | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
return ptr; | ||
} | ||
free() { | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_compileerror_free(ptr); | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
get message() { | ||
const ret = wasm.__wbg_get_compileerror_message(this.__wbg_ptr); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
set message(arg0) { | ||
wasm.__wbg_set_compileerror_message(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
/** | ||
* @returns {any} | ||
*/ | ||
get diagnostics() { | ||
const ret = wasm.__wbg_get_compileerror_diagnostics(this.__wbg_ptr); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {any} arg0 | ||
*/ | ||
set diagnostics(arg0) { | ||
wasm.__wbg_set_compileerror_diagnostics(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
} | ||
module.exports.CompileError = CompileError; | ||
module.exports.__wbg_compileerror_new = function(arg0) { | ||
const ret = CompileError.__wrap(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -213,3 +275,22 @@ | ||
module.exports.__wbg_readfile_0c1777c7c5aa8c92 = function() { return handleError(function (arg0, arg1, arg2) { | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
const ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
}; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
module.exports.__wbg_readfile_db7d495e3e198483 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = read_file(getStringFromWasm0(arg1, arg2)); | ||
@@ -248,3 +329,3 @@ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
} finally { | ||
wasm.__wbindgen_export_3(deferred0_0, deferred0_1); | ||
wasm.__wbindgen_export_2(deferred0_0, deferred0_1); | ||
} | ||
@@ -277,11 +358,12 @@ }; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
module.exports.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_length_820c786973abdd8a = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
module.exports.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) { | ||
@@ -288,0 +370,0 @@ const ret = JSON.parse(getStringFromWasm0(arg0, arg1)); |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.16.0", | ||
"version": "0.17.0-86704ba.nightly", | ||
"license": "(MIT OR Apache-2.0)", | ||
@@ -24,11 +24,14 @@ "main": "./nodejs/noir_wasm.js", | ||
"build": "bash ./build.sh", | ||
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha", | ||
"test:node": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha", | ||
"test": "yarn test:node && yarn test:browser", | ||
"test:node": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' mocha", | ||
"test:browser": "web-test-runner", | ||
"clean": "chmod u+w web nodejs || true && rm -rf ./nodejs ./web ./target ./result", | ||
"publish": "yarn npm publish", | ||
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0" | ||
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json", | ||
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish", | ||
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0", | ||
"build:nix": "nix build -L .#noir_wasm", | ||
"install:from:nix": "yarn clean && yarn build:nix && cp -rL ./result/noir_wasm/nodejs ./ && cp -rL ./result/noir_wasm/web ./" | ||
}, | ||
"peerDependencies": { | ||
"@noir-lang/source-resolver": "0.16.0" | ||
"@noir-lang/source-resolver": "0.17.0-86704ba.nightly" | ||
}, | ||
@@ -40,5 +43,4 @@ "devDependencies": { | ||
"@web/test-runner-playwright": "^0.10.0", | ||
"@web/test-runner-webdriver": "^0.7.0", | ||
"mocha": "^10.2.0" | ||
} | ||
} |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export const memory: WebAssembly.Memory; | ||
export function compile(a: number): number; | ||
export function __wbg_compileerror_free(a: number): void; | ||
export function __wbg_get_compileerror_message(a: number): number; | ||
export function __wbg_set_compileerror_message(a: number, b: number): void; | ||
export function __wbg_get_compileerror_diagnostics(a: number): number; | ||
export function __wbg_set_compileerror_diagnostics(a: number, b: number): void; | ||
export function init_log_level(a: number, b: number): void; | ||
@@ -9,6 +13,7 @@ export function build_info(): number; | ||
export function acir_write_bytes(a: number, b: number): void; | ||
export function compile(a: number, b: number, c: number, d: number, e: number): void; | ||
export function __wbindgen_export_0(a: number): number; | ||
export function __wbindgen_export_1(a: number, b: number, c: number): number; | ||
export function __wbindgen_export_2(a: number): void; | ||
export function __wbindgen_add_to_stack_pointer(a: number): number; | ||
export function __wbindgen_export_3(a: number, b: number): void; | ||
export function __wbindgen_export_2(a: number, b: number): void; | ||
export function __wbindgen_export_3(a: number): void; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args: any): any; | ||
/** | ||
* @param {string} level | ||
@@ -26,3 +21,37 @@ */ | ||
export function acir_write_bytes(acir: any): Uint8Array; | ||
/** | ||
* @param {string} entry_point | ||
* @param {boolean | undefined} contracts | ||
* @param {string[] | undefined} dependencies | ||
* @returns {any} | ||
*/ | ||
export function compile(entry_point: string, contracts?: boolean, dependencies?: string[]): any; | ||
export type Diagnostic = { | ||
message: string; | ||
file_path: string; | ||
secondaries: ReadonlyArray<{ | ||
message: string; | ||
start: number; | ||
end: number; | ||
}>; | ||
} | ||
interface CompileError { | ||
diagnostics: ReadonlyArray<Diagnostic>; | ||
} | ||
/** | ||
*/ | ||
export class CompileError { | ||
free(): void; | ||
/** | ||
*/ | ||
diagnostics: any; | ||
/** | ||
*/ | ||
message: string; | ||
} | ||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; | ||
@@ -32,3 +61,7 @@ | ||
readonly memory: WebAssembly.Memory; | ||
readonly compile: (a: number) => number; | ||
readonly __wbg_compileerror_free: (a: number) => void; | ||
readonly __wbg_get_compileerror_message: (a: number) => number; | ||
readonly __wbg_set_compileerror_message: (a: number, b: number) => void; | ||
readonly __wbg_get_compileerror_diagnostics: (a: number) => number; | ||
readonly __wbg_set_compileerror_diagnostics: (a: number, b: number) => void; | ||
readonly init_log_level: (a: number, b: number) => void; | ||
@@ -38,7 +71,8 @@ readonly build_info: () => number; | ||
readonly acir_write_bytes: (a: number, b: number) => void; | ||
readonly compile: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly __wbindgen_export_0: (a: number) => number; | ||
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number; | ||
readonly __wbindgen_export_2: (a: number) => void; | ||
readonly __wbindgen_add_to_stack_pointer: (a: number) => number; | ||
readonly __wbindgen_export_3: (a: number, b: number) => void; | ||
readonly __wbindgen_export_2: (a: number, b: number) => void; | ||
readonly __wbindgen_export_3: (a: number) => void; | ||
} | ||
@@ -45,0 +79,0 @@ |
@@ -25,6 +25,13 @@ import { read_file } from '@noir-lang/source-resolver'; | ||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
let cachedUint8Memory0 = null; | ||
@@ -39,18 +46,2 @@ | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); | ||
@@ -121,17 +112,10 @@ | ||
} | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args) { | ||
const ret = wasm.compile(addHeapObject(args)); | ||
return takeObject(ret); | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
wasm.__wbindgen_export_2(addHeapObject(e)); | ||
} | ||
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(); }; | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
@@ -187,3 +171,3 @@ /** | ||
var v1 = getArrayU8FromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_export_3(r0, r1 * 1); | ||
wasm.__wbindgen_export_2(r0, r1 * 1); | ||
return v1; | ||
@@ -195,2 +179,84 @@ } finally { | ||
/** | ||
* @param {string} entry_point | ||
* @param {boolean | undefined} contracts | ||
* @param {string[] | undefined} dependencies | ||
* @returns {any} | ||
*/ | ||
export function compile(entry_point, contracts, dependencies) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependencies) ? 0 : addHeapObject(dependencies)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
wasm.__wbindgen_export_3(addHeapObject(e)); | ||
} | ||
} | ||
/** | ||
*/ | ||
export class CompileError { | ||
static __wrap(ptr) { | ||
ptr = ptr >>> 0; | ||
const obj = Object.create(CompileError.prototype); | ||
obj.__wbg_ptr = ptr; | ||
return obj; | ||
} | ||
__destroy_into_raw() { | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
return ptr; | ||
} | ||
free() { | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_compileerror_free(ptr); | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
get message() { | ||
const ret = wasm.__wbg_get_compileerror_message(this.__wbg_ptr); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
set message(arg0) { | ||
wasm.__wbg_set_compileerror_message(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
/** | ||
* @returns {any} | ||
*/ | ||
get diagnostics() { | ||
const ret = wasm.__wbg_get_compileerror_diagnostics(this.__wbg_ptr); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {any} arg0 | ||
*/ | ||
set diagnostics(arg0) { | ||
wasm.__wbg_set_compileerror_diagnostics(this.__wbg_ptr, addHeapObject(arg0)); | ||
} | ||
} | ||
async function __wbg_load(module, imports) { | ||
@@ -230,2 +296,21 @@ if (typeof Response === 'function' && module instanceof Response) { | ||
imports.wbg = {}; | ||
imports.wbg.__wbg_compileerror_new = function(arg0) { | ||
const ret = CompileError.__wrap(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) { | ||
const ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
}; | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
@@ -235,10 +320,3 @@ const ret = getObject(arg0) === undefined; | ||
}; | ||
imports.wbg.__wbindgen_is_null = function(arg0) { | ||
const ret = getObject(arg0) === null; | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbg_readfile_0c1777c7c5aa8c92 = function() { return handleError(function (arg0, arg1, arg2) { | ||
imports.wbg.__wbg_readfile_db7d495e3e198483 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = read_file(getStringFromWasm0(arg1, arg2)); | ||
@@ -273,3 +351,3 @@ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
} finally { | ||
wasm.__wbindgen_export_3(deferred0_0, deferred0_1); | ||
wasm.__wbindgen_export_2(deferred0_0, deferred0_1); | ||
} | ||
@@ -295,10 +373,10 @@ }; | ||
}; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
imports.wbg.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_length_820c786973abdd8a = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) { | ||
@@ -305,0 +383,0 @@ const ret = JSON.parse(getStringFromWasm0(arg0, arg1)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
15360351
5
865