summaryrefslogtreecommitdiff
path: root/Source/bindings/scripts/v8_attributes.py
diff options
context:
space:
mode:
Diffstat (limited to 'Source/bindings/scripts/v8_attributes.py')
-rw-r--r--Source/bindings/scripts/v8_attributes.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/bindings/scripts/v8_attributes.py b/Source/bindings/scripts/v8_attributes.py
index 2aaec3c716f2..6d00711a6007 100644
--- a/Source/bindings/scripts/v8_attributes.py
+++ b/Source/bindings/scripts/v8_attributes.py
@@ -109,8 +109,7 @@ def generate_attribute(interface, attribute):
'has_setter_exception_state':
is_setter_raises_exception or has_type_checking_interface or
has_type_checking_nullable or has_type_checking_unrestricted or
- idl_type.is_integer_type or
- idl_type.name in ('ByteString', 'ScalarValueString'),
+ idl_type.may_raise_exception_on_conversion,
'has_type_checking_interface': has_type_checking_interface,
'has_type_checking_nullable': has_type_checking_nullable,
'has_type_checking_unrestricted': has_type_checking_unrestricted,