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

Unified Diff: test/mjsunit/wasm/export-table.js

Issue 2551323003: [wasm] Names of exported functions should be the stringified function index. (Closed)
Patch Set: 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
Index: test/mjsunit/wasm/export-table.js
diff --git a/test/mjsunit/wasm/export-table.js b/test/mjsunit/wasm/export-table.js
index 4e9f1314e30457baf50bfc26232be116e83dbcfd..9087d32339d545dfa160877629ccedac949d8cc1 100644
--- a/test/mjsunit/wasm/export-table.js
+++ b/test/mjsunit/wasm/export-table.js
@@ -98,7 +98,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
print("TestExportMultipleIdentity...");
var builder = new WasmModuleBuilder();
- builder.addFunction("one", kSig_v_v).addBody([kExprNop])
+ var f = builder.addFunction("one", kSig_v_v).addBody([kExprNop])
.exportAs("a")
.exportAs("b")
.exportAs("c");
@@ -110,5 +110,5 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
assertEquals("function", typeof e.c);
assertSame(e.a, e.b);
assertSame(e.a, e.c);
- assertEquals("a", e.a.name);
+ assertEquals(String(f.index), e.a.name);
})();

Powered by Google App Engine
This is Rietveld 408576698