@@ -6,26 +6,6 @@ export function __wbg_set_wasm(val) {
6
6
}
7
7
8
8
9
- const lTextDecoder = typeof TextDecoder === 'undefined' ? ( 0 , module . require ) ( 'util' ) . TextDecoder : TextDecoder ;
10
-
11
- let cachedTextDecoder = new lTextDecoder ( 'utf-8' , { ignoreBOM : true , fatal : true } ) ;
12
-
13
- cachedTextDecoder . decode ( ) ;
14
-
15
- let cachedUint8ArrayMemory0 = null ;
16
-
17
- function getUint8ArrayMemory0 ( ) {
18
- if ( cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0 . byteLength === 0 ) {
19
- cachedUint8ArrayMemory0 = new Uint8Array ( wasm . memory . buffer ) ;
20
- }
21
- return cachedUint8ArrayMemory0 ;
22
- }
23
-
24
- function getStringFromWasm0 ( ptr , len ) {
25
- ptr = ptr >>> 0 ;
26
- return cachedTextDecoder . decode ( getUint8ArrayMemory0 ( ) . subarray ( ptr , ptr + len ) ) ;
27
- }
28
-
29
9
const heap = new Array ( 128 ) . fill ( undefined ) ;
30
10
31
11
heap . push ( undefined , null , true , false ) ;
@@ -45,6 +25,26 @@ function takeObject(idx) {
45
25
dropObject ( idx ) ;
46
26
return ret ;
47
27
}
28
+
29
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? ( 0 , module . require ) ( 'util' ) . TextDecoder : TextDecoder ;
30
+
31
+ let cachedTextDecoder = new lTextDecoder ( 'utf-8' , { ignoreBOM : true , fatal : true } ) ;
32
+
33
+ cachedTextDecoder . decode ( ) ;
34
+
35
+ let cachedUint8ArrayMemory0 = null ;
36
+
37
+ function getUint8ArrayMemory0 ( ) {
38
+ if ( cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0 . byteLength === 0 ) {
39
+ cachedUint8ArrayMemory0 = new Uint8Array ( wasm . memory . buffer ) ;
40
+ }
41
+ return cachedUint8ArrayMemory0 ;
42
+ }
43
+
44
+ function getStringFromWasm0 ( ptr , len ) {
45
+ ptr = ptr >>> 0 ;
46
+ return cachedTextDecoder . decode ( getUint8ArrayMemory0 ( ) . subarray ( ptr , ptr + len ) ) ;
47
+ }
48
48
/**
49
49
* @param {number } test
50
50
* @returns {number }
@@ -109,11 +109,11 @@ export function __wbg_test2_39fe629b9aa739cf() {
109
109
return addHeapObject ( ret ) ;
110
110
} ;
111
111
112
- export function __wbindgen_throw ( arg0 , arg1 ) {
113
- throw new Error ( getStringFromWasm0 ( arg0 , arg1 ) ) ;
114
- } ;
115
-
116
112
export function __wbindgen_object_drop_ref ( arg0 ) {
117
113
takeObject ( arg0 ) ;
118
114
} ;
119
115
116
+ export function __wbindgen_throw ( arg0 , arg1 ) {
117
+ throw new Error ( getStringFromWasm0 ( arg0 , arg1 ) ) ;
118
+ } ;
119
+
0 commit comments