mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Support union variadic arguments and add tests.
This commit is contained in:
parent
d89f867b14
commit
78f368d336
3 changed files with 40 additions and 4 deletions
|
@ -551,10 +551,6 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
|
|||
raise TypeError("Can't handle sequence arguments yet")
|
||||
|
||||
if type.isUnion():
|
||||
if isMember:
|
||||
raise TypeError("Can't handle unions as members, we have a "
|
||||
"holderType")
|
||||
|
||||
declType = CGGeneric(type.name + "::" + type.name)
|
||||
if type.nullable():
|
||||
declType = CGWrapper(declType, pre="Option<", post=" >")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue