Chromium Code Reviews| 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), |
|
ulan
2014/04/10 13:59:26
Since you have the isolate, you could as well pass
|
| + i::Handle<i::String>::cast(other)); |
| } else if (obj->IsUndefined() || obj->IsUndetectableObject()) { |
| return other->IsUndefined() || other->IsUndetectableObject(); |
| } else { |