Index: Source/bindings/templates/dictionary_v8.cpp |
diff --git a/Source/bindings/templates/dictionary_v8.cpp b/Source/bindings/templates/dictionary_v8.cpp |
index 4a18170cb29058d92729815863db2bfd84510c02..fc0bac90bb8ae7a6721222ef7200e14efc3455bc 100644 |
--- a/Source/bindings/templates/dictionary_v8.cpp |
+++ b/Source/bindings/templates/dictionary_v8.cpp |
@@ -15,6 +15,8 @@ namespace blink { |
{{cpp_class}}* {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value, ExceptionState& exceptionState) |
{ |
+ ASSERT(isUndefinedOrNull(v8Value) || v8Value->IsObject()); |
+ |
{{cpp_class}}* impl = {{cpp_class}}::create(); |
// FIXME: Do not use Dictionary and DictionaryHelper |
// https://crbug.com/321462 |