Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 11bdf8194f097cd1d9cea88a8fb262e31f4a5fa3..05e8ede0fd3d33d59eb3bfe8c0ba0ef86becfc58 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -534,7 +534,6 @@ Reduction JSTypedLowering::ReduceJSLoadProperty(Node* node) { |
Type* base_type = NodeProperties::GetBounds(base).upper; |
// TODO(mstarzinger): This lowering is not correct if: |
// a) The typed array or it's buffer is neutered. |
- // b) The index is out of bounds. |
if (base_type->IsConstant() && key_type->Is(Type::Integral32()) && |
base_type->AsConstant()->Value()->IsJSTypedArray()) { |
// JSLoadProperty(typed-array, int32) |