File tree 2 files changed +13
-18
lines changed
2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -1090,13 +1090,10 @@ module Emit =
1090
1090
| Some c' -> emitConstructorSigFromJson c'
1091
1091
| _ ->
1092
1092
//Emit constructor signature
1093
- match i.Constructors with
1094
- | Some ctors ->
1095
- i.Constructors.Value.Constructors |> Array.iter emitConstructorSingleSignature
1096
- | _ ->
1097
- match i.Constructor with
1098
- | Some ctor -> emitConstructorSingleSignature ctor
1099
- | _ -> Pt.Printl " new(): %s ;" i.Name
1093
+ if not ( Array.isEmpty i.Constructors) then
1094
+ i.Constructors |> Array.iter emitConstructorSingleSignature
1095
+ else
1096
+ Pt.Printl " new(): %s ;" i.Name
1100
1097
1101
1098
getAddedItems ItemKind.Constructor Flavor.All
1102
1099
|> Array.filter ( matchInterface i.Name)
Original file line number Diff line number Diff line change 6275
6275
</methods>
6276
6276
</interface>
6277
6277
<interface name="ImageData" extends="Object">
6278
- <constructors>
6279
- <constructor>
6280
- <param name="sw" type="unsigned long"/>
6281
- <param name="sh" type="unsigned long"/>
6282
- </constructor>
6283
- <constructor>
6284
- <param name="data" type="Uint8ClampedArray"/>
6285
- <param name="sw" type="unsigned long"/>
6286
- <param name="sh" optional="1" type="unsigned long"/>
6287
- </constructor>
6288
- </constructors>
6278
+ <constructor>
6279
+ <param name="sw" type="unsigned long"/>
6280
+ <param name="sh" type="unsigned long"/>
6281
+ </constructor>
6282
+ <constructor>
6283
+ <param name="data" type="Uint8ClampedArray"/>
6284
+ <param name="sw" type="unsigned long"/>
6285
+ <param name="sh" optional="1" type="unsigned long"/>
6286
+ </constructor>
6289
6287
<properties>
6290
6288
<property name="width" read-only="1" type="unsigned long"/>
6291
6289
<property name="height" read-only="1" type="unsigned long"/>
You can’t perform that action at this time.
0 commit comments