Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index c7b1453d6bdfd97a57d4e28349eadbc527803187..bf65a9fe4f46d32e58ce825a1e05362d300ac0b9 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -3096,8 +3096,9 @@ void Isolate::InvalidateStringLengthOverflowProtector() { |
void Isolate::InvalidateArrayIteratorProtector() { |
DCHECK(factory()->array_iterator_protector()->value()->IsSmi()); |
DCHECK(IsArrayIteratorLookupChainIntact()); |
- factory()->array_iterator_protector()->set_value( |
- Smi::FromInt(kProtectorInvalid)); |
+ PropertyCell::SetValueWithInvalidation( |
+ factory()->array_iterator_protector(), |
+ handle(Smi::FromInt(kProtectorInvalid), this)); |
DCHECK(!IsArrayIteratorLookupChainIntact()); |
} |