mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Union types now allow ByteString
This commit is contained in:
parent
4ae0897175
commit
56bdc002fc
3 changed files with 35 additions and 1 deletions
|
@ -2077,7 +2077,7 @@ def UnionTypes(descriptors, dictionaries, callbacks, config):
|
|||
'dom::bindings::conversions::root_from_handlevalue',
|
||||
'dom::bindings::error::throw_not_in_union',
|
||||
'dom::bindings::js::Root',
|
||||
'dom::bindings::str::{DOMString, USVString}',
|
||||
'dom::bindings::str::{ByteString, DOMString, USVString}',
|
||||
'dom::types::*',
|
||||
'js::jsapi::JSContext',
|
||||
'js::jsapi::{HandleValue, MutableHandleValue}',
|
||||
|
@ -3754,6 +3754,9 @@ def getUnionTypeTemplateVars(type, descriptorProvider):
|
|||
name = str(type)
|
||||
# XXXjdm dunno about typeName here
|
||||
typeName = "/*" + type.name + "*/"
|
||||
elif type.isByteString():
|
||||
name = type.name
|
||||
typeName = "ByteString"
|
||||
elif type.isDOMString():
|
||||
name = type.name
|
||||
typeName = "DOMString"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue