diff options
Diffstat (limited to 'deps/v8/third_party/inspector_protocol/lib/ValueConversions_cpp.template')
-rw-r--r-- | deps/v8/third_party/inspector_protocol/lib/ValueConversions_cpp.template | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/third_party/inspector_protocol/lib/ValueConversions_cpp.template b/deps/v8/third_party/inspector_protocol/lib/ValueConversions_cpp.template index 36c8dcc356..a16b522c38 100644 --- a/deps/v8/third_party/inspector_protocol/lib/ValueConversions_cpp.template +++ b/deps/v8/third_party/inspector_protocol/lib/ValueConversions_cpp.template @@ -96,6 +96,10 @@ bool ProtocolTypeTraits<std::unique_ptr<DictionaryValue>>::Deserialize( std::unique_ptr<Value> res; if (!ProtocolTypeTraits<std::unique_ptr<Value>>::Deserialize(state, &res)) return false; + if (res->type() != Value::TypeObject) { + state->RegisterError(Error::BINDINGS_DICTIONARY_VALUE_EXPECTED); + return false; + } *value = DictionaryValue::cast(std::move(res)); return true; } |