Skip to content

Commit a773e37

Browse files
committed
[MERGE #3598 @Cellule] Fix #3597
Merge pull request #3598 from Cellule:users/micfer/wasm/limit Fix Build Break in slow tests
2 parents 4bf71d0 + d02d598 commit a773e37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/WasmSpec/testsuite/harness/wasm-module-builder.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ class Binary extends Array {
6969
// Emit section name.
7070
this.emit_u8(section_code);
7171
// Emit the section to a temporary buffer: its full length isn't know yet.
72-
let section = new Binary;
72+
const section = new Binary;
7373
content_generator(section);
7474
// Emit section length.
7575
this.emit_u32v(section.length);
7676
// Copy the temporary buffer.
77-
this.push(...section);
77+
for (let i = 0; i < section.length; ++i) {
78+
this.push(section[i]);
79+
}
7880
}
7981
}
8082

0 commit comments

Comments
 (0)