Skip to content

Commit 604e6b7

Browse files
committed
Add changelog entry
1 parent af3d8e2 commit 604e6b7

File tree

2 files changed

+28
-25
lines changed

2 files changed

+28
-25
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
* Fixed enum variant name collisions with object prototype fields.
6565
[#4137](https://github.com/rustwasm/wasm-bindgen/pull/4137)
6666

67+
* Fixed multiline doc comment alignment and remove empty ones entirely.
68+
[#4135](https://github.com/rustwasm/wasm-bindgen/pull/4135)
69+
6770
--------------------------------------------------------------------------------
6871

6972
## [0.2.93](https://github.com/rustwasm/wasm-bindgen/compare/0.2.92...0.2.93)

crates/cli/tests/reference/raw.js

Lines changed: 25 additions & 25 deletions
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}
@@ -104,11 +104,6 @@ export class Test {
104104
}
105105
}
106106

107-
export function __wbg_test2_39fe629b9aa739cf() {
108-
const ret = test2();
109-
return addHeapObject(ret);
110-
};
111-
112107
export function __wbindgen_object_drop_ref(arg0) {
113108
takeObject(arg0);
114109
};
@@ -117,3 +112,8 @@ export function __wbindgen_throw(arg0, arg1) {
117112
throw new Error(getStringFromWasm0(arg0, arg1));
118113
};
119114

115+
export function __wbg_test2_39fe629b9aa739cf() {
116+
const ret = test2();
117+
return addHeapObject(ret);
118+
};
119+

0 commit comments

Comments
 (0)