Union types now allow ByteString

This commit is contained in:
Malisa Smith 2016-07-21 14:12:45 -07:00
parent 4ae0897175
commit 56bdc002fc
3 changed files with 35 additions and 1 deletions

View file

@ -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"