Index: Source/bindings/scripts/v8_dictionary.py |
diff --git a/Source/bindings/scripts/v8_dictionary.py b/Source/bindings/scripts/v8_dictionary.py |
index 69fd1c082bb946f79594e24767d3281f697c7ee3..39a9b076eebf147b80ae3bb5e6a3e1bde9ffd54a 100644 |
--- a/Source/bindings/scripts/v8_dictionary.py |
+++ b/Source/bindings/scripts/v8_dictionary.py |
@@ -18,6 +18,7 @@ DICTIONARY_H_INCLUDES = frozenset([ |
]) |
DICTIONARY_CPP_INCLUDES = frozenset([ |
+ 'bindings/core/v8/ExceptionState.h', |
# FIXME: Remove this, http://crbug.com/321462 |
'bindings/core/v8/Dictionary.h', |
]) |
@@ -75,6 +76,7 @@ def member_context(member): |
cpp_value='impl->%s()' % member.name, isolate='isolate', |
creation_context='creationContext', |
extended_attributes=member.extended_attributes), |
+ 'enum_validation_expression': idl_type.enum_validation_expression, |
'has_method_name': has_method_name_for_dictionary_member(member), |
'name': member.name, |
'setter_name': setter_name_for_dictionary_member(member), |
@@ -105,8 +107,7 @@ def member_impl_context(member, interfaces_info, header_includes): |
return 'm_%s' % member.name |
def has_method_expression(): |
- if (idl_type.impl_should_use_nullable_container or |
- idl_type.is_string_type): |
+ if (idl_type.impl_should_use_nullable_container or idl_type.is_enum or idl_type.is_string_type): |
bashi
2014/09/10 11:09:02
Umm.. Need to wrap this line to pass presubmit.
ch
|
return '!m_%s.isNull()' % member.name |
else: |
return 'm_%s' % member.name |