Chromium Code Reviews| 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 3a0d827473a4ddb1618f35a88c501649abaca71e..9ad2a58b444e96cec356d9784ad2f9e8a16677cd 100644 |
| --- a/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp |
| +++ b/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp |
| @@ -117,6 +117,10 @@ bool toV8{{cpp_class}}(const {{cpp_class}}& impl, v8::Local<v8::Object> dictiona |
| } else { |
| if (!v8CallBoolean(dictionary->CreateDataProperty(isolate->GetCurrentContext(), v8String(isolate, "{{member.name}}"), {{member.v8_default_value}}))) |
| return false; |
| + {% elif member.is_nullable %} |
| + } else { |
| + if (!v8CallBoolean(dictionary->CreateDataProperty(isolate->GetCurrentContext(), v8String(isolate, "{{member.name}}"), Null(isolate)))) |
|
haraken
2016/05/03 05:22:48
Do you mean v8::Null?
|
| + return false; |
| {% elif member.is_required %} |
| } else { |
| ASSERT_NOT_REACHED(); |