Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index eafc86c2d7f5752f6ef37a78fffffced490575cf..2c3b3b7d8409c853e0edb8d4f0b1a66ce53d3e7d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2995,7 +2995,8 @@ bool Value::StrictEquals(Handle<Value> that) const { |
return other->IsNumber() && obj->Number() == other->Number(); |
} else if (obj->IsString()) { |
return other->IsString() && |
- i::String::cast(*obj)->Equals(i::String::cast(*other)); |
+ i::String::Equals(i::Handle<i::String>::cast(obj), |
+ i::Handle<i::String>::cast(other)); |
} else if (obj->IsUndefined() || obj->IsUndetectableObject()) { |
return other->IsUndefined() || other->IsUndetectableObject(); |
} else { |