| Index: third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.cpp b/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.cpp
|
| index 58af4258d304900a1d23d7e9b480f92402d724b7..bd1191daa7653c12e7d1123f4e144d460500f013 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.cpp
|
| @@ -37,6 +37,8 @@ v8::Local<v8::Value> V8HiddenValue::getHiddenValue(ScriptState* scriptState, v8:
|
|
|
| bool V8HiddenValue::setHiddenValue(ScriptState* scriptState, v8::Local<v8::Object> object, v8::Local<v8::String> key, v8::Local<v8::Value> value)
|
| {
|
| + if (UNLIKELY(value.IsEmpty()))
|
| + return false;
|
| return v8CallBoolean(object->SetPrivate(scriptState->context(), v8::Private::ForApi(scriptState->isolate(), key), value));
|
| }
|
|
|
|
|