| Index: Source/bindings/scripts/v8_types.py
|
| diff --git a/Source/bindings/scripts/v8_types.py b/Source/bindings/scripts/v8_types.py
|
| index 96fe1790e78f77a595885a6a8f46b1ba0caea40b..646d7fc450cb5cbf9be10319993338d7071568d4 100644
|
| --- a/Source/bindings/scripts/v8_types.py
|
| +++ b/Source/bindings/scripts/v8_types.py
|
| @@ -541,10 +541,13 @@ def v8_value_to_cpp_value(idl_type, extended_attributes, v8_value, variable_name
|
| add_includes_for_type(idl_type)
|
| base_idl_type = idl_type.as_union_type.name if idl_type.is_union_type else idl_type.base_type
|
|
|
| - if 'EnforceRange' in extended_attributes:
|
| - arguments = ', '.join([v8_value, 'EnforceRange', 'exceptionState'])
|
| - elif 'Clamp' in extended_attributes:
|
| - arguments = ', '.join([v8_value, 'Clamp', 'exceptionState'])
|
| + if idl_type.is_integer_type:
|
| + configuration = 'NormalConversion'
|
| + if 'EnforceRange' in extended_attributes:
|
| + configuration = 'EnforceRange'
|
| + elif 'Clamp' in extended_attributes:
|
| + configuration = 'Clamp'
|
| + arguments = ', '.join([v8_value, configuration, 'exceptionState'])
|
| elif idl_type.v8_conversion_needs_exception_state:
|
| arguments = ', '.join([v8_value, 'exceptionState'])
|
| else:
|
|
|