Index: Source/bindings/scripts/v8_types.py |
diff --git a/Source/bindings/scripts/v8_types.py b/Source/bindings/scripts/v8_types.py |
index bb2fac1f410d8fcbe0199c712b84efbc2dad3ed0..34af136995135f5944db250e873c4fbef789a46a 100644 |
--- a/Source/bindings/scripts/v8_types.py |
+++ b/Source/bindings/scripts/v8_types.py |
@@ -536,9 +536,9 @@ def v8_conversion_type(idl_type, extended_attributes): |
return 'int' |
if base_idl_type in CPP_UNSIGNED_TYPES: |
return 'unsigned' |
- if base_idl_type == 'DOMString': |
+ if base_idl_type in ('DOMString', 'ByteString'): |
if 'TreatReturnedNullStringAs' not in extended_attributes: |
- return 'DOMString' |
+ return base_idl_type |
treat_returned_null_string_as = extended_attributes['TreatReturnedNullStringAs'] |
if treat_returned_null_string_as == 'Null': |
return 'StringOrNull' |