Skip to content

Commit fdd8294

Browse files
committed
hotfix
1 parent 54ec2f5 commit fdd8294

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/build/patches.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,13 @@ function convertKDLNodes(nodes: Node[]): DeepPartial<WebIdl> {
9393
enums[name] = handleEnum(node);
9494
break;
9595
case "interface-mixin":
96-
mixin[name] = handleMixinandInterfaces(node, "mixin");
96+
mixin[name] = merge(
97+
mixin[name],
98+
handleMixinAndInterfaces(node, "mixin"),
99+
);
97100
break;
98101
case "interface":
99-
interfaces[name] = handleMixinandInterfaces(node, "interface");
102+
interfaces[name] = handleMixinAndInterfaces(node, "interface");
100103
break;
101104
case "dictionary":
102105
dictionary[name] = handleDictionary(node);
@@ -146,7 +149,7 @@ function handleEnum(node: Node): Enum {
146149
* @param node The mixin node to handle.
147150
* @param mixins The record of mixins to update.
148151
*/
149-
function handleMixinandInterfaces(
152+
function handleMixinAndInterfaces(
150153
node: Node,
151154
type: "mixin" | "interface",
152155
): DeepPartial<Interface> {

0 commit comments

Comments
 (0)