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

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

Issue 2559113006: [wasm][asm.js] Ignore duplicate exports in asm.js. (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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/asm-validation.js
diff --git a/test/mjsunit/asm/asm-validation.js b/test/mjsunit/asm/asm-validation.js
index 0c9e841fe94ad4b95ac0579b482cf5ed9b41ccb5..db355234750ee7266e3812002b176360ceaf0aac 100644
--- a/test/mjsunit/asm/asm-validation.js
+++ b/test/mjsunit/asm/asm-validation.js
@@ -316,6 +316,18 @@ function assertValidAsm(func) {
assertEquals(3, m.foo(3));
})();
+(function TestBadExportTwice() {
+ function Module() {
+ "use asm";
+ function bar() { return 1; }
+ function baz() { return 2; }
+ return {foo: bar, foo: baz};
+ }
+ var m = Module();
+ assertTrue(%IsAsmWasmCode(Module));
+ assertEquals(2, m.foo());
+})();
+
(function TestBadImport() {
function Module(stdlib) {
"use asm";
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698