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); |
})(); |