Index: pkg/compiler/lib/src/ssa/codegen.dart |
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart |
index 6a2002c1143251454329fc2a00856c19f099db68..3739c838f6f1ab03954887d53a4a1c3a7af5a352 100644 |
--- a/pkg/compiler/lib/src/ssa/codegen.dart |
+++ b/pkg/compiler/lib/src/ssa/codegen.dart |
@@ -2122,7 +2122,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor { |
js.Statement thenBody = new js.Block.empty(); |
js.Block oldContainer = currentContainer; |
currentContainer = thenBody; |
- generateThrowWithHelper('ioore', [node.array, node.index]); |
+ generateThrowWithHelper('ioore', [node.array, node.reportedIndex]); |
currentContainer = oldContainer; |
thenBody = unwrapStatement(thenBody); |
pushStatement(new js.If.noElse(underOver, thenBody) |