Skip to content

Commit fb643a6

Browse files
Merge pull request #574 from nd-02110114/fix-build-error
fix build error
2 parents 42a044f + 35f3c61 commit fb643a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widlprocess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function getConstructor(extAttrs: webidl2.ExtendedAttributes[], parent: string)
175175

176176
function getNamedConstructor(extAttrs: webidl2.ExtendedAttributes[], parent: string): Browser.NamedConstructor | undefined {
177177
for (const extAttr of extAttrs) {
178-
if (extAttr.name === "NamedConstructor" && typeof extAttr.rhs.value === "string") {
178+
if (extAttr.name === "NamedConstructor" && extAttr.rhs && typeof extAttr.rhs.value === "string") {
179179
return {
180180
name: extAttr.rhs.value,
181181
signature: [{

0 commit comments

Comments
 (0)