mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +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.
|
# Allow using the typedef's name for accessing variants.
|
||||||
template = "pub use self::%(type)s as %(name)s;"
|
template = "pub use self::%(type)s as %(name)s;"
|
||||||
else:
|
else:
|
||||||
assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider())
|
|
||||||
template = "pub type %(name)s = %(type)s;"
|
template = "pub type %(name)s = %(type)s;"
|
||||||
|
|
||||||
cgthings.append(CGGeneric(template % substs))
|
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) TestTypedef;
|
||||||
typedef (DOMString or URL or Blob)? TestTypedefNullableUnion;
|
typedef (DOMString or URL or Blob)? TestTypedefNullableUnion;
|
||||||
typedef DOMString TestTypedefString;
|
typedef DOMString TestTypedefString;
|
||||||
|
typedef Blob TestTypedefInterface;
|
||||||
|
|
||||||
dictionary TestDictionary {
|
dictionary TestDictionary {
|
||||||
required boolean requiredValue;
|
required boolean requiredValue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue