mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-29 13:41:21 +00:00
38 lines
9.3 KiB
JavaScript
38 lines
9.3 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{
|
|
|
|
/***/ "./pkg/index.js":
|
|
/*!**********************!*\
|
|
!*** ./pkg/index.js ***!
|
|
\**********************/
|
|
/*! exports provided: run, __wbindgen_number_new, __wbindgen_string_new, __wbg_log_4a4a987f783d8fd3, __wbg_log_147e873043e41c14, __wbg_log_4584557def6005e9, __wbg_log_cc6b9ddc6ca5449d, __wbg_log_52402f5f94747477, __wbindgen_object_drop_ref, __wbindgen_throw */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index_bg.wasm */ \"./pkg/index_bg.wasm\");\n/* harmony import */ var _index_bg_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index_bg.js */ \"./pkg/index_bg.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"run\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"run\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_number_new\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_number_new\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_string_new\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_string_new\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_4a4a987f783d8fd3\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_log_4a4a987f783d8fd3\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_147e873043e41c14\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_log_147e873043e41c14\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_4584557def6005e9\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_log_4584557def6005e9\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_cc6b9ddc6ca5449d\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_log_cc6b9ddc6ca5449d\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_52402f5f94747477\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_log_52402f5f94747477\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_object_drop_ref\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_object_drop_ref\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_throw\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_throw\"]; });\n\n\n\n_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_start\"]();\n\n\n//# sourceURL=webpack:///./pkg/index.js?");
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./pkg/index_bg.js":
|
|
/*!*************************!*\
|
|
!*** ./pkg/index_bg.js ***!
|
|
\*************************/
|
|
/*! exports provided: run, __wbindgen_number_new, __wbindgen_string_new, __wbg_log_4a4a987f783d8fd3, __wbg_log_147e873043e41c14, __wbg_log_4584557def6005e9, __wbg_log_cc6b9ddc6ca5449d, __wbg_log_52402f5f94747477, __wbindgen_object_drop_ref, __wbindgen_throw */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(TextDecoder, module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"run\", function() { return run; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_number_new\", function() { return __wbindgen_number_new; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_string_new\", function() { return __wbindgen_string_new; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_4a4a987f783d8fd3\", function() { return __wbg_log_4a4a987f783d8fd3; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_147e873043e41c14\", function() { return __wbg_log_147e873043e41c14; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_4584557def6005e9\", function() { return __wbg_log_4584557def6005e9; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_cc6b9ddc6ca5449d\", function() { return __wbg_log_cc6b9ddc6ca5449d; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_52402f5f94747477\", function() { return __wbg_log_52402f5f94747477; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_object_drop_ref\", function() { return __wbindgen_object_drop_ref; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_throw\", function() { return __wbindgen_throw; });\n/* harmony import */ var _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index_bg.wasm */ \"./pkg/index_bg.wasm\");\n\n\nconst heap = new Array(32).fill(undefined);\n\nheap.push(undefined, null, true, false);\n\nlet heap_next = heap.length;\n\nfunction addHeapObject(obj) {\n if (heap_next === heap.length) heap.push(heap.length + 1);\n const idx = heap_next;\n heap_next = heap[idx];\n\n if (typeof(heap_next) !== 'number') throw new Error('corrupt heap');\n\n heap[idx] = obj;\n return idx;\n}\n\nconst lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;\n\nlet cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n\ncachedTextDecoder.decode();\n\nlet cachegetUint8Memory0 = null;\nfunction getUint8Memory0() {\n if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer) {\n cachegetUint8Memory0 = new Uint8Array(_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer);\n }\n return cachegetUint8Memory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));\n}\n\nfunction getObject(idx) { return heap[idx]; }\n\nfunction dropObject(idx) {\n if (idx < 36) return;\n heap[idx] = heap_next;\n heap_next = idx;\n}\n\nfunction takeObject(idx) {\n const ret = getObject(idx);\n dropObject(idx);\n return ret;\n}\n/**\n*/\nfunction run() {\n _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"run\"]();\n}\n\nfunction logError(f) {\n return function () {\n try {\n return f.apply(this, arguments);\n\n } catch (e) {\n let error = (function () {\n try {\n return e instanceof Error ? `${e.message}\\n\\nStack:\\n${e.stack}` : e.toString();\n } catch(_) {\n return \"<failed to stringify thrown value>\";\n }\n }());\n console.error(\"wasm-bindgen: imported JS function that was not marked as `catch` threw an error:\", error);\n throw e;\n }\n };\n}\n\nconst __wbindgen_number_new = function(arg0) {\n var ret = arg0;\n return addHeapObject(ret);\n};\n\nconst __wbindgen_string_new = function(arg0, arg1) {\n var ret = getStringFromWasm0(arg0, arg1);\n return addHeapObject(ret);\n};\n\nconst __wbg_log_4a4a987f783d8fd3 = logError(function(arg0, arg1) {\n console.log(getStringFromWasm0(arg0, arg1));\n});\n\nconst __wbg_log_147e873043e41c14 = logError(function(arg0) {\n console.log(arg0 >>> 0);\n});\n\nconst __wbg_log_4584557def6005e9 = logError(function(arg0, arg1, arg2, arg3) {\n console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));\n});\n\nconst __wbg_log_cc6b9ddc6ca5449d = logError(function(arg0) {\n console.log(getObject(arg0));\n});\n\nconst __wbg_log_52402f5f94747477 = logError(function(arg0, arg1) {\n console.log(getObject(arg0), getObject(arg1));\n});\n\nconst __wbindgen_object_drop_ref = function(arg0) {\n takeObject(arg0);\n};\n\nconst __wbindgen_throw = function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n};\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! text-encoding */ \"../../node_modules/text-encoding/index.js\")[\"TextDecoder\"], __webpack_require__(/*! ./../../../node_modules/webpack/buildin/harmony-module.js */ \"../../node_modules/webpack/buildin/harmony-module.js\")(module)))\n\n//# sourceURL=webpack:///./pkg/index_bg.js?");
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./pkg/index_bg.wasm":
|
|
/*!***************************!*\
|
|
!*** ./pkg/index_bg.wasm ***!
|
|
\***************************/
|
|
/*! exports provided: memory, run, __wbindgen_start */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
eval("\"use strict\";\n// Instantiate WebAssembly module\nvar wasmExports = __webpack_require__.w[module.i];\n__webpack_require__.r(exports);\n// export exports from WebAssembly module\nfor(var name in wasmExports) if(name != \"__webpack_init__\") exports[name] = wasmExports[name];\n// exec imports from WebAssembly module (for esm order)\n/* harmony import */ var m0 = __webpack_require__(/*! ./index_bg.js */ \"./pkg/index_bg.js\");\n\n\n// exec wasm module\nwasmExports[\"__webpack_init__\"]()\n\n//# sourceURL=webpack:///./pkg/index_bg.wasm?");
|
|
|
|
/***/ })
|
|
|
|
}]); |