Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: test/mjsunit/wasm/asm-wasm.js

Issue 2535723009: [wasm][asm.js] Allow a function to be exported more than once. (Closed)
Patch Set: fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wasm/wasm-module-builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
+})();
« no previous file with comments | « src/wasm/wasm-module-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698