Skip to content

Commit 3a8da7c

Browse files
authored
Fix CI (#4177)
1 parent aaad798 commit 3a8da7c

File tree

1 file changed

+24
-24
lines changed
  • crates/cli/tests/reference

1 file changed

+24
-24
lines changed

crates/cli/tests/reference/raw.js

+24-24
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@ export function __wbg_set_wasm(val) {
66
}
77

88

9-
const heap = new Array(128).fill(undefined);
10-
11-
heap.push(undefined, null, true, false);
12-
13-
function getObject(idx) { return heap[idx]; }
14-
15-
let heap_next = heap.length;
16-
17-
function dropObject(idx) {
18-
if (idx < 132) return;
19-
heap[idx] = heap_next;
20-
heap_next = idx;
21-
}
22-
23-
function takeObject(idx) {
24-
const ret = getObject(idx);
25-
dropObject(idx);
26-
return ret;
27-
}
28-
299
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
3010

3111
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -45,6 +25,26 @@ function getStringFromWasm0(ptr, len) {
4525
ptr = ptr >>> 0;
4626
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
4727
}
28+
29+
const heap = new Array(128).fill(undefined);
30+
31+
heap.push(undefined, null, true, false);
32+
33+
function getObject(idx) { return heap[idx]; }
34+
35+
let heap_next = heap.length;
36+
37+
function dropObject(idx) {
38+
if (idx < 132) return;
39+
heap[idx] = heap_next;
40+
heap_next = idx;
41+
}
42+
43+
function takeObject(idx) {
44+
const ret = getObject(idx);
45+
dropObject(idx);
46+
return ret;
47+
}
4848
/**
4949
* @param {number} test
5050
* @returns {number}
@@ -109,11 +109,11 @@ export function __wbg_test2_39fe629b9aa739cf() {
109109
return addHeapObject(ret);
110110
};
111111

112-
export function __wbindgen_object_drop_ref(arg0) {
113-
takeObject(arg0);
114-
};
115-
116112
export function __wbindgen_throw(arg0, arg1) {
117113
throw new Error(getStringFromWasm0(arg0, arg1));
118114
};
119115

116+
export function __wbindgen_object_drop_ref(arg0) {
117+
takeObject(arg0);
118+
};
119+

0 commit comments

Comments
 (0)