Index: third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp |
diff --git a/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp b/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp |
index 582143235bf88728b212248b0e8797df57bb6a9a..4fed94a711c63e1dc62d65bdb46cf765218feb98 100644 |
--- a/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp |
+++ b/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp |
@@ -68,7 +68,7 @@ void {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, {{ |
{% endif %} |
{{v8_value_to_local_cpp_value(member) | indent(8)}} |
{% if member.is_interface_type %} |
- if (!{{member.name}} && !{{member.name}}Value->IsNull()) { |
+ if (!{{member.name}}) { |
exceptionState.throwTypeError("member {{member.name}} is not of type {{member.idl_type}}."); |
return; |
} |