diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-02-08 12:28:51 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-02-08 12:28:51 +0100 |
commit | 8a5987c1dba4f31c176eb4a55b9afc45debb2388 (patch) | |
tree | 4c7548ea9af8f34e1008df96df58ec516d57c971 /components/script | |
parent | 35bc171a05ea430b3c6bb6887e5135a6dd9908d1 (diff) | |
download | servo-8a5987c1dba4f31c176eb4a55b9afc45debb2388.tar.gz servo-8a5987c1dba4f31c176eb4a55b9afc45debb2388.zip |
Fix typo in the non-union code path for typedefs.
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/TestBinding.webidl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index e5c3761edfe..9846cdd7b97 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -6127,7 +6127,7 @@ class CGBindingRoot(CGThing): cgthings.extend([CGGeneric("\npub use dom::bindings::codegen::UnionTypes::%s as %s;\n\n" % (t.innerType, t.identifier.name))]) else: - assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider) + assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider()) cgthings.extend([CGGeneric("\npub type %s = " % (t.identifier.name)), getRetvalDeclarationForType(t.innerType, config.getDescriptorProvider()), CGGeneric(";\n\n")]) diff --git a/components/script/dom/webidls/TestBinding.webidl b/components/script/dom/webidls/TestBinding.webidl index 59d4fb35466..d688c0d96b6 100644 --- a/components/script/dom/webidls/TestBinding.webidl +++ b/components/script/dom/webidls/TestBinding.webidl @@ -8,6 +8,7 @@ enum TestEnum { "", "foo", "bar" }; typedef (DOMString or URL or Blob) TestTypedef; typedef (DOMString or URL or Blob)? TestTypedefNullableUnion; +typedef DOMString TestTypedefString; dictionary TestDictionary { required boolean requiredValue; |