OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 load('test/mjsunit/wasm/wasm-constants.js'); |
| 6 load('test/mjsunit/wasm/wasm-module-builder.js'); |
| 7 |
| 8 { |
| 9 let builder = new WasmModuleBuilder(); |
| 10 builder.addMemory(); |
| 11 builder.exportMemoryAs("exported_mem"); |
| 12 i1 = builder.instantiate(); |
| 13 } |
| 14 { |
| 15 let builder = new WasmModuleBuilder(); |
| 16 builder.addImportedMemory("fil", "imported_mem"); |
| 17 i2 = builder.instantiate({fil: {imported_mem: i1.exports.exported_mem}}); |
| 18 } |
OLD | NEW |