Commit 2ece13d2 authored by Yuki Shiino's avatar Yuki Shiino Committed by Commit Bot

IDL compiler: Fix constructor support for IDL namespace

Bug: 839389
Change-Id: I7fc344032d336977a7ff80e398dc2fcee6ccd156
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873630
Commit-Queue: Hitoshi Yoshida <peria@chromium.org>
Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708452}
parent 842dce61
...@@ -10,3 +10,9 @@ ...@@ -10,3 +10,9 @@
[Custom] constructor(Node node); [Custom] constructor(Node node);
[RuntimeEnabled=Hoge] constructor(long num); [RuntimeEnabled=Hoge] constructor(long num);
}; };
namespace TestNamespace {
readonly attribute boolean attr1;
readonly attribute DOMString attr2;
void op1();
};
...@@ -62,6 +62,8 @@ class Namespace(UserDefinedType, WithExtendedAttributes, WithCodeGeneratorInfo, ...@@ -62,6 +62,8 @@ class Namespace(UserDefinedType, WithExtendedAttributes, WithCodeGeneratorInfo,
self.is_partial = is_partial self.is_partial = is_partial
self.attributes = list(attributes) self.attributes = list(attributes)
self.constants = list(constants) self.constants = list(constants)
self.constructors = []
self.constructor_groups = []
self.operations = list(operations) self.operations = list(operations)
self.operation_groups = [] self.operation_groups = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment