| 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 df6007b67a73f9c55ddcf6f08af2f803f1cf0a69..7d2908591283e0e6726b61ba89ea7551fc6ea070 100644
 | 
| --- a/test/mjsunit/wasm/wasm-module-builder.js
 | 
| +++ b/test/mjsunit/wasm/wasm-module-builder.js
 | 
| @@ -83,10 +83,11 @@ class WasmFunctionBuilder {
 | 
|      this.module = module;
 | 
|      this.name = name;
 | 
|      this.type_index = type_index;
 | 
| +    this.body = [];
 | 
|    }
 | 
|  
 | 
|    exportAs(name) {
 | 
| -    this.module.exports.push({name: name, kind: kExternalFunction, index: this.index});
 | 
| +    this.module.addExport(name, this.index);
 | 
|      return this;
 | 
|    }
 | 
|  
 | 
| @@ -199,6 +200,11 @@ class WasmModuleBuilder {
 | 
|      this.imports.push(o);
 | 
|    }
 | 
|  
 | 
| +  addExport(name, index) {
 | 
| +    this.exports.push({name: name, kind: kExternalFunction, index: index});
 | 
| +    return this;
 | 
| +  }
 | 
| +
 | 
|    addDataSegment(addr, data, is_global = false) {
 | 
|      this.segments.push({addr: addr, data: data, is_global: is_global});
 | 
|      return this.segments.length - 1;
 | 
| 
 |