Skip to content

Commit ad697ae

Browse files
committed
update wasm
1 parent 63d2e07 commit ad697ae

File tree

2 files changed

+1759
-1786
lines changed

2 files changed

+1759
-1786
lines changed

packages/hub/src/vendor/xet-chunk/chunker_wasm_bg.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,6 @@ function handleError(f, args) {
9595
}
9696
}
9797

98-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
99-
100-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
101-
102-
cachedTextDecoder.decode();
103-
104-
function getStringFromWasm0(ptr, len) {
105-
ptr = ptr >>> 0;
106-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
107-
}
108-
10998
function debugString(val) {
11099
// primitive types
111100
const type = typeof val;
@@ -171,6 +160,17 @@ function debugString(val) {
171160
return className;
172161
}
173162

163+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
164+
165+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
166+
167+
cachedTextDecoder.decode();
168+
169+
function getStringFromWasm0(ptr, len) {
170+
ptr = ptr >>> 0;
171+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
172+
}
173+
174174
function isLikeNone(x) {
175175
return x === undefined || x === null;
176176
}
@@ -437,10 +437,6 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
437437
return ret;
438438
};
439439

440-
export function __wbg_log_c5d1a8dc098212af(arg0, arg1) {
441-
console.log(getStringFromWasm0(arg0, arg1));
442-
};
443-
444440
export function __wbg_new_405e22f390576ce2() {
445441
const ret = new Object();
446442
return ret;

0 commit comments

Comments
 (0)