We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bf71d0 + d02d598 commit a773e37Copy full SHA for a773e37
test/WasmSpec/testsuite/harness/wasm-module-builder.js
@@ -69,12 +69,14 @@ class Binary extends Array {
69
// Emit section name.
70
this.emit_u8(section_code);
71
// Emit the section to a temporary buffer: its full length isn't know yet.
72
- let section = new Binary;
+ const section = new Binary;
73
content_generator(section);
74
// Emit section length.
75
this.emit_u32v(section.length);
76
// Copy the temporary buffer.
77
- this.push(...section);
+ for (let i = 0; i < section.length; ++i) {
78
+ this.push(section[i]);
79
+ }
80
}
81
82
0 commit comments