diff --git a/deps/v8/src/zone-allocator.h b/deps/v8/src/zone-allocator.h index ab0ae9cf606ddb..1eb69b89dd7064 100644 --- a/deps/v8/src/zone-allocator.h +++ b/deps/v8/src/zone-allocator.h @@ -50,10 +50,10 @@ class zone_allocator { } void destroy(pointer p) { p->~T(); } - bool operator==(zone_allocator const& other) { + bool operator==(zone_allocator const& other) const { return zone_ == other.zone_; } - bool operator!=(zone_allocator const& other) { + bool operator!=(zone_allocator const& other) const { return zone_ != other.zone_; }