mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Remove pointless assertion in the typedef code.
This commit is contained in:
parent
507b4bf05e
commit
7d5320f419
2 changed files with 1 additions and 1 deletions
|
@ -6132,7 +6132,6 @@ class CGBindingRoot(CGThing):
|
|||
# Allow using the typedef's name for accessing variants.
|
||||
template = "pub use self::%(type)s as %(name)s;"
|
||||
else:
|
||||
assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider())
|
||||
template = "pub type %(name)s = %(type)s;"
|
||||
|
||||
cgthings.append(CGGeneric(template % substs))
|
||||
|
|
|
@ -9,6 +9,7 @@ enum TestEnum { "", "foo", "bar" };
|
|||
typedef (DOMString or URL or Blob) TestTypedef;
|
||||
typedef (DOMString or URL or Blob)? TestTypedefNullableUnion;
|
||||
typedef DOMString TestTypedefString;
|
||||
typedef Blob TestTypedefInterface;
|
||||
|
||||
dictionary TestDictionary {
|
||||
required boolean requiredValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue