Chromium Code Reviews| Index: Source/bindings/core/v8/ScriptValue.cpp |
| diff --git a/Source/bindings/core/v8/ScriptValue.cpp b/Source/bindings/core/v8/ScriptValue.cpp |
| index 5b7a362ce41c97e9952fceecdb756f13e0f14e18..d0139df0a0796b76a91af7ccb581eed9934e81f7 100644 |
| --- a/Source/bindings/core/v8/ScriptValue.cpp |
| +++ b/Source/bindings/core/v8/ScriptValue.cpp |
| @@ -37,6 +37,16 @@ |
| namespace blink { |
| +int ScriptValue::identityHash() const |
| +{ |
| + if (isEmpty()) |
| + return 0; |
| + v8::Local<v8::Value> value = m_value->newLocal(isolate()); |
|
yurys
2014/10/03 15:08:05
There should be a HandleScope.
aandrey
2014/10/06 10:52:56
Done.
|
| + if (!value->IsObject()) |
| + return 0; |
| + return v8::Local<v8::Object>::Cast(value)->GetIdentityHash(); |
| +} |
| + |
| v8::Handle<v8::Value> ScriptValue::v8Value() const |
| { |
| if (isEmpty()) |