Skip to content

Commit e25bfde

Browse files
committed
Update
1 parent ceb5143 commit e25bfde

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

lib/wasmbuild.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// deno-lint-ignore-file
44
// deno-fmt-ignore-file
55
// @ts-self-types="./wasmbuild.d.ts"
6+
// source-hash: 42abdfbeb5cf210c856f23fe256f0194e6faf8d0
67

7-
// source-hash: d5fff448b0ce0d83629b673dbe53bfcbfd1838ba
8-
import * as wasm from "./wasmbuild.wasm";
8+
import * as wasm from "./wasmbuild_bg.wasm";
99
export * from "./wasmbuild.internal.js";
1010
import { __wbg_set_wasm } from "./wasmbuild.internal.js";
1111
__wbg_set_wasm(wasm);

lib/wasmbuild_bg.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ function getDataViewMemory0() {
100100
return cachedDataViewMemory0;
101101
}
102102

103+
let heap_next = heap.length;
104+
105+
function addHeapObject(obj) {
106+
if (heap_next === heap.length) heap.push(heap.length + 1);
107+
const idx = heap_next;
108+
heap_next = heap[idx];
109+
110+
heap[idx] = obj;
111+
return idx;
112+
}
113+
103114
const lTextDecoder = typeof TextDecoder === "undefined"
104115
? (0, module.require)("util").TextDecoder
105116
: TextDecoder;
@@ -118,17 +129,6 @@ function getStringFromWasm0(ptr, len) {
118129
);
119130
}
120131

121-
let heap_next = heap.length;
122-
123-
function addHeapObject(obj) {
124-
if (heap_next === heap.length) heap.push(heap.length + 1);
125-
const idx = heap_next;
126-
heap_next = heap[idx];
127-
128-
heap[idx] = obj;
129-
return idx;
130-
}
131-
132132
function dropObject(idx) {
133133
if (idx < 132) return;
134134
heap[idx] = heap_next;
@@ -195,35 +195,35 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
195195
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
196196
}
197197

198-
export function __wbg_new_5bd3cfec88bd010e(arg0, arg1) {
199-
const ret = new Error(getStringFromWasm0(arg0, arg1));
198+
export function __wbg_new_405e22f390576ce2() {
199+
const ret = new Object();
200200
return addHeapObject(ret);
201201
}
202202

203-
export function __wbg_new_9e6542cc3fe4b09e() {
204-
const ret = new Array();
203+
export function __wbg_new_5e0be73521bc8c17() {
204+
const ret = new Map();
205205
return addHeapObject(ret);
206206
}
207207

208-
export function __wbg_new_dbb4955149975b18() {
209-
const ret = new Object();
208+
export function __wbg_new_78feb108b6472713() {
209+
const ret = new Array();
210210
return addHeapObject(ret);
211211
}
212212

213-
export function __wbg_new_efea5718d1896ea2() {
214-
const ret = new Map();
213+
export function __wbg_new_c68d7209be747379(arg0, arg1) {
214+
const ret = new Error(getStringFromWasm0(arg0, arg1));
215215
return addHeapObject(ret);
216216
}
217217

218-
export function __wbg_set_0ccc5fa791d83f2d(arg0, arg1, arg2) {
218+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
219219
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
220220
}
221221

222222
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
223223
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
224224
}
225225

226-
export function __wbg_set_9b8ce78fa3e7ad0e(arg0, arg1, arg2) {
226+
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
227227
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
228228
return addHeapObject(ret);
229229
}

lib/wasmbuild_bg.wasm

-4.95 KB
Binary file not shown.

0 commit comments

Comments
 (0)