Chromium Code Reviews| 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 453e1ff90b3c4ded62543ee5eeca61e6077870b7..65ff1d0d8ed9d6c0744dea2f67b90a2006f04f41 100644 |
| --- a/test/mjsunit/wasm/wasm-module-builder.js |
| +++ b/test/mjsunit/wasm/wasm-module-builder.js |
| @@ -98,6 +98,8 @@ class WasmFunctionBuilder { |
| addBody(body) { |
| this.body = body; |
| + // Automatically add the end for the function block to the body. |
| + body.push(kExprEnd); |
| return this; |
| } |