Index: test/mjsunit/wasm/export-table.js |
diff --git a/test/mjsunit/wasm/export-table.js b/test/mjsunit/wasm/export-table.js |
index 2200af5c68f9df3b6c6a88844de1dbdae6fc5990..477ffc5529b0e0cbb23857bc98cac19f6ef7a028 100644 |
--- a/test/mjsunit/wasm/export-table.js |
+++ b/test/mjsunit/wasm/export-table.js |
@@ -133,3 +133,24 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
assertSame(e.a, e.c); |
assertEquals(String(f.index), e.a.name); |
})(); |
+ |
+ |
+(function testReexportJSMultipleIdentity() { |
+ print("TestReexportMultipleIdentity..."); |
+ var builder = new WasmModuleBuilder(); |
+ |
+ function js() {} |
+ |
+ var a = builder.addImport("a", kSig_v_v); |
+ var b = builder.addImport("a", kSig_v_v); |
+ builder.addExport("f", a); |
+ builder.addExport("g", b); |
+ |
+ let instance = builder.instantiate({a: js, b: js}); |
Clemens Hammacher
2016/12/20 09:51:39
b is not needed here
titzer
2016/12/20 10:13:45
Actually that was a bug in the test. Good catch. F
|
+ let e = instance.exports; |
+ assertEquals("function", typeof e.f); |
+ assertEquals("function", typeof e.g); |
+ assertFalse(e.f == js); |
+ assertFalse(e.g == js); |
+ assertFalse(e.f == e.g); |
+})(); |