summaryrefslogtreecommitdiff
path: root/deps/v8/src/zone/zone-chunk-list.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/zone/zone-chunk-list.h')
-rw-r--r--deps/v8/src/zone/zone-chunk-list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/zone/zone-chunk-list.h b/deps/v8/src/zone/zone-chunk-list.h
index 9c0c073a81..049e8f52a9 100644
--- a/deps/v8/src/zone/zone-chunk-list.h
+++ b/deps/v8/src/zone/zone-chunk-list.h
@@ -155,8 +155,8 @@ class ZoneChunkListIterator
using ChunkList = maybe_const<ZoneChunkList<T>>;
public:
- maybe_const<T>& operator*() { return current_->items()[position_]; }
- maybe_const<T>* operator->() { return &current_->items()[position_]; }
+ maybe_const<T>& operator*() const { return current_->items()[position_]; }
+ maybe_const<T>* operator->() const { return &current_->items()[position_]; }
bool operator==(const ZoneChunkListIterator& other) const {
return other.current_ == current_ && other.position_ == position_;
}