Index: test/mjsunit/wasm/asm-wasm.js |
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js |
index d0df4828fa0f07a0191c89fb7ee7ffa60718228b..0507b128c37840e2edf7633bae92415a4ad575ea 100644 |
--- a/test/mjsunit/wasm/asm-wasm.js |
+++ b/test/mjsunit/wasm/asm-wasm.js |
@@ -1675,3 +1675,17 @@ function TestFloatGlobals(stdlib) { |
} |
assertWasm(3.25, TestFloatGlobals); |
+ |
+ |
+(function TestExportTwice() { |
+ function asmModule() { |
+ "use asm"; |
+ function foo() { |
+ return 42; |
+ } |
+ return {bar: foo, baz: foo}; |
+ } |
+ var m = asmModule(); |
+ assertEquals(42, m.bar()); |
+ assertEquals(42, m.baz()); |
+})(); |