| Index: test/mjsunit/wasm/wasm-module-builder.js
|
| diff --git a/test/mjsunit/wasm/wasm-module-builder.js b/test/mjsunit/wasm/wasm-module-builder.js
|
| index 186c8609a94a91984b952e497feb1d8f0c704cfa..df26fed12a22184282a4bc6dc44fe58b9ad0daa2 100644
|
| --- a/test/mjsunit/wasm/wasm-module-builder.js
|
| +++ b/test/mjsunit/wasm/wasm-module-builder.js
|
| @@ -97,6 +97,9 @@ class WasmFunctionBuilder {
|
| }
|
|
|
| addBody(body) {
|
| + for (let b of body) {
|
| + if (typeof b != 'number') throw new Error("invalid body");
|
| + }
|
| this.body = body;
|
| // Automatically add the end for the function block to the body.
|
| body.push(kExprEnd);
|
|
|