Index: test/mjsunit/wasm/globals.js |
diff --git a/test/mjsunit/wasm/globals.js b/test/mjsunit/wasm/globals.js |
index 6ebd123748675e00e218c9cc112fb292daabf080..afd2dcc5ceeb8d5209882eaa41607582f6f8e6bd 100644 |
--- a/test/mjsunit/wasm/globals.js |
+++ b/test/mjsunit/wasm/globals.js |
@@ -13,7 +13,7 @@ function TestImported(type, val, expected) { |
var sig = makeSig([], [type]); |
var g = builder.addImportedGlobal("uuu", "foo", type); |
builder.addFunction("main", sig) |
- .addBody([kExprGetGlobal, g.index]) |
+ .addBody([kExprGetGlobal, g]) |
.exportAs("main"); |
builder.addGlobal(kWasmI32); // pad |