Index: src/handles.h |
diff --git a/src/handles.h b/src/handles.h |
index 1f97d6ff7e6d95c76b521baf45938e5f1c5f8243..234bd60c72e629bb6c57517b75dfd9280dc9fddc 100644 |
--- a/src/handles.h |
+++ b/src/handles.h |
@@ -114,6 +114,10 @@ class Handle final : public HandleBase { |
return reinterpret_cast<T*>(HandleBase::operator*()); |
} |
+ V8_INLINE bool operator==(const Handle<T>& other) { |
+ return is_identical_to(other); |
+ } |
+ |
// Returns the address to where the raw pointer is stored. |
V8_INLINE T** location() const { |
return reinterpret_cast<T**>(HandleBase::location()); |