Index: third_party/WebKit/Source/bindings/scripts/v8_types.py |
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_types.py b/third_party/WebKit/Source/bindings/scripts/v8_types.py |
index 353c2a2645bac0f0930377189cad73acb99ad911..b938bdc9cce4e05c1fd3ad9f2b95f8b2b950eff1 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_types.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_types.py |
@@ -624,11 +624,7 @@ def v8_value_to_local_cpp_value(idl_type, extended_attributes, v8_value, variabl |
if idl_type.is_string_type or idl_type.v8_conversion_needs_exception_state: |
# Types for which conversion can fail and that need error handling. |
- if use_exception_state: |
- check_expression = 'exceptionState.hadException()' |
- else: |
- check_expression = 'exceptionState.throwIfNeeded()' |
- |
+ check_expression = 'exceptionState.hadException()' |
if idl_type.is_dictionary or idl_type.is_union_type: |
set_expression = cpp_value |
else: |