@@ -246,12 +246,12 @@ public class AbortSignal: EventTarget {
246
246
super.init(unsafelyWrapping: jsObject)
247
247
}
248
248
249
- @inlinable public static func abort(reason: JSValue? = nil) -> Self {
249
+ @inlinable public class func abort(reason: JSValue? = nil) -> Self {
250
250
let this = constructor!
251
251
return this[Strings.abort].function!(this: this, arguments: [_toJSValue(reason)]).fromJSValue()!
252
252
}
253
253
254
- @inlinable public static func timeout(milliseconds: UInt64) -> Self {
254
+ @inlinable public class func timeout(milliseconds: UInt64) -> Self {
255
255
let this = constructor!
256
256
return this[Strings.timeout].function!(this: this, arguments: [_toJSValue(milliseconds)]).fromJSValue()!
257
257
}
@@ -619,13 +619,13 @@ public class AudioDecoder: JSBridgedClass {
619
619
_ = this[Strings.close].function!(this: this, arguments: [])
620
620
}
621
621
622
- @inlinable public static func isConfigSupported(config: AudioDecoderConfig) -> JSPromise {
622
+ @inlinable public class func isConfigSupported(config: AudioDecoderConfig) -> JSPromise {
623
623
let this = constructor!
624
624
return this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
625
625
}
626
626
627
627
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
628
- @inlinable public static func isConfigSupported(config: AudioDecoderConfig) async throws -> AudioDecoderSupport {
628
+ @inlinable public class func isConfigSupported(config: AudioDecoderConfig) async throws -> AudioDecoderSupport {
629
629
let this = constructor!
630
630
let _promise: JSPromise = this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
631
631
return try await _promise.value.fromJSValue()!
@@ -758,13 +758,13 @@ public class AudioEncoder: JSBridgedClass {
758
758
_ = this[Strings.close].function!(this: this, arguments: [])
759
759
}
760
760
761
- @inlinable public static func isConfigSupported(config: AudioEncoderConfig) -> JSPromise {
761
+ @inlinable public class func isConfigSupported(config: AudioEncoderConfig) -> JSPromise {
762
762
let this = constructor!
763
763
return this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
764
764
}
765
765
766
766
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
767
- @inlinable public static func isConfigSupported(config: AudioEncoderConfig) async throws -> AudioEncoderSupport {
767
+ @inlinable public class func isConfigSupported(config: AudioEncoderConfig) async throws -> AudioEncoderSupport {
768
768
let this = constructor!
769
769
let _promise: JSPromise = this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
770
770
return try await _promise.value.fromJSValue()!
@@ -2770,13 +2770,13 @@ public class DOMMatrix: DOMMatrixReadOnly {
2770
2770
}
2771
2771
2772
2772
// XXX: illegal static override
2773
- // override public static func fromMatrix(other: DOMMatrixInit? = nil) -> Self
2773
+ // override public class func fromMatrix(other: DOMMatrixInit? = nil) -> Self
2774
2774
2775
2775
// XXX: illegal static override
2776
- // override public static func fromFloat32Array(array32: Float32Array) -> Self
2776
+ // override public class func fromFloat32Array(array32: Float32Array) -> Self
2777
2777
2778
2778
// XXX: illegal static override
2779
- // override public static func fromFloat64Array(array64: Float64Array) -> Self
2779
+ // override public class func fromFloat64Array(array64: Float64Array) -> Self
2780
2780
2781
2781
@usableFromInline let _a: ReadWriteAttribute<Double>
2782
2782
@inlinable override public var a: Double {
@@ -3145,17 +3145,17 @@ public class DOMMatrixReadOnly: JSBridgedClass {
3145
3145
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(`init`)]))
3146
3146
}
3147
3147
3148
- @inlinable public static func fromMatrix(other: DOMMatrixInit? = nil) -> Self {
3148
+ @inlinable public class func fromMatrix(other: DOMMatrixInit? = nil) -> Self {
3149
3149
let this = constructor!
3150
3150
return this[Strings.fromMatrix].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
3151
3151
}
3152
3152
3153
- @inlinable public static func fromFloat32Array(array32: Float32Array) -> Self {
3153
+ @inlinable public class func fromFloat32Array(array32: Float32Array) -> Self {
3154
3154
let this = constructor!
3155
3155
return this[Strings.fromFloat32Array].function!(this: this, arguments: [_toJSValue(array32)]).fromJSValue()!
3156
3156
}
3157
3157
3158
- @inlinable public static func fromFloat64Array(array64: Float64Array) -> Self {
3158
+ @inlinable public class func fromFloat64Array(array64: Float64Array) -> Self {
3159
3159
let this = constructor!
3160
3160
return this[Strings.fromFloat64Array].function!(this: this, arguments: [_toJSValue(array64)]).fromJSValue()!
3161
3161
}
@@ -3378,7 +3378,7 @@ public class DOMPoint: DOMPointReadOnly {
3378
3378
}
3379
3379
3380
3380
// XXX: illegal static override
3381
- // override public static func fromPoint(other: DOMPointInit? = nil) -> Self
3381
+ // override public class func fromPoint(other: DOMPointInit? = nil) -> Self
3382
3382
3383
3383
@usableFromInline let _x: ReadWriteAttribute<Double>
3384
3384
@inlinable override public var x: Double {
@@ -3453,7 +3453,7 @@ public class DOMPointReadOnly: JSBridgedClass {
3453
3453
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(x), _toJSValue(y), _toJSValue(z), _toJSValue(w)]))
3454
3454
}
3455
3455
3456
- @inlinable public static func fromPoint(other: DOMPointInit? = nil) -> Self {
3456
+ @inlinable public class func fromPoint(other: DOMPointInit? = nil) -> Self {
3457
3457
let this = constructor!
3458
3458
return this[Strings.fromPoint].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
3459
3459
}
@@ -3498,12 +3498,12 @@ public class DOMQuad: JSBridgedClass {
3498
3498
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(p1), _toJSValue(p2), _toJSValue(p3), _toJSValue(p4)]))
3499
3499
}
3500
3500
3501
- @inlinable public static func fromRect(other: DOMRectInit? = nil) -> Self {
3501
+ @inlinable public class func fromRect(other: DOMRectInit? = nil) -> Self {
3502
3502
let this = constructor!
3503
3503
return this[Strings.fromRect].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
3504
3504
}
3505
3505
3506
- @inlinable public static func fromQuad(other: DOMQuadInit? = nil) -> Self {
3506
+ @inlinable public class func fromQuad(other: DOMQuadInit? = nil) -> Self {
3507
3507
let this = constructor!
3508
3508
return this[Strings.fromQuad].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
3509
3509
}
@@ -3578,7 +3578,7 @@ public class DOMRect: DOMRectReadOnly {
3578
3578
}
3579
3579
3580
3580
// XXX: illegal static override
3581
- // override public static func fromRect(other: DOMRectInit? = nil) -> Self
3581
+ // override public class func fromRect(other: DOMRectInit? = nil) -> Self
3582
3582
3583
3583
@usableFromInline let _x: ReadWriteAttribute<Double>
3584
3584
@inlinable override public var x: Double {
@@ -3680,7 +3680,7 @@ public class DOMRectReadOnly: JSBridgedClass {
3680
3680
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(x), _toJSValue(y), _toJSValue(width), _toJSValue(height)]))
3681
3681
}
3682
3682
3683
- @inlinable public static func fromRect(other: DOMRectInit? = nil) -> Self {
3683
+ @inlinable public class func fromRect(other: DOMRectInit? = nil) -> Self {
3684
3684
let this = constructor!
3685
3685
return this[Strings.fromRect].function!(this: this, arguments: [_toJSValue(other)]).fromJSValue()!
3686
3686
}
@@ -8786,7 +8786,7 @@ public class HTMLScriptElement: HTMLElement {
8786
8786
@ReadonlyAttribute
8787
8787
public var blocking: DOMTokenList
8788
8788
8789
- @inlinable public static func supports(type: String) -> Bool {
8789
+ @inlinable public class func supports(type: String) -> Bool {
8790
8790
let this = constructor!
8791
8791
return this[Strings.supports].function!(this: this, arguments: [_toJSValue(type)]).fromJSValue()!
8792
8792
}
@@ -10066,13 +10066,13 @@ public class ImageDecoder: JSBridgedClass {
10066
10066
_ = this[Strings.close].function!(this: this, arguments: [])
10067
10067
}
10068
10068
10069
- @inlinable public static func isTypeSupported(type: String) -> JSPromise {
10069
+ @inlinable public class func isTypeSupported(type: String) -> JSPromise {
10070
10070
let this = constructor!
10071
10071
return this[Strings.isTypeSupported].function!(this: this, arguments: [_toJSValue(type)]).fromJSValue()!
10072
10072
}
10073
10073
10074
10074
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
10075
- @inlinable public static func isTypeSupported(type: String) async throws -> Bool {
10075
+ @inlinable public class func isTypeSupported(type: String) async throws -> Bool {
10076
10076
let this = constructor!
10077
10077
let _promise: JSPromise = this[Strings.isTypeSupported].function!(this: this, arguments: [_toJSValue(type)]).fromJSValue()!
10078
10078
return try await _promise.value.fromJSValue()!
@@ -10785,7 +10785,7 @@ public class MediaRecorder: EventTarget {
10785
10785
_ = this[Strings.requestData].function!(this: this, arguments: [])
10786
10786
}
10787
10787
10788
- @inlinable public static func isTypeSupported(type: String) -> Bool {
10788
+ @inlinable public class func isTypeSupported(type: String) -> Bool {
10789
10789
let this = constructor!
10790
10790
return this[Strings.isTypeSupported].function!(this: this, arguments: [_toJSValue(type)]).fromJSValue()!
10791
10791
}
@@ -10927,7 +10927,7 @@ public class MediaSource: EventTarget {
10927
10927
_ = this[Strings.clearLiveSeekableRange].function!(this: this, arguments: [])
10928
10928
}
10929
10929
10930
- @inlinable public static func isTypeSupported(type: String) -> Bool {
10930
+ @inlinable public class func isTypeSupported(type: String) -> Bool {
10931
10931
let this = constructor!
10932
10932
return this[Strings.isTypeSupported].function!(this: this, arguments: [_toJSValue(type)]).fromJSValue()!
10933
10933
}
@@ -13923,12 +13923,12 @@ public class Response: JSBridgedClass, Body {
13923
13923
self.init(unsafelyWrapping: Self.constructor!.new(arguments: [_toJSValue(body), _toJSValue(`init`)]))
13924
13924
}
13925
13925
13926
- @inlinable public static func error() -> Self {
13926
+ @inlinable public class func error() -> Self {
13927
13927
let this = constructor!
13928
13928
return this[Strings.error].function!(this: this, arguments: []).fromJSValue()!
13929
13929
}
13930
13930
13931
- @inlinable public static func redirect(url: String, status: UInt16? = nil) -> Self {
13931
+ @inlinable public class func redirect(url: String, status: UInt16? = nil) -> Self {
13932
13932
let this = constructor!
13933
13933
return this[Strings.redirect].function!(this: this, arguments: [_toJSValue(url), _toJSValue(status)]).fromJSValue()!
13934
13934
}
@@ -15703,12 +15703,12 @@ public class URL: JSBridgedClass {
15703
15703
self.jsObject = jsObject
15704
15704
}
15705
15705
15706
- @inlinable public static func createObjectURL(obj: Blob_or_MediaSource) -> String {
15706
+ @inlinable public class func createObjectURL(obj: Blob_or_MediaSource) -> String {
15707
15707
let this = constructor!
15708
15708
return this[Strings.createObjectURL].function!(this: this, arguments: [_toJSValue(obj)]).fromJSValue()!
15709
15709
}
15710
15710
15711
- @inlinable public static func revokeObjectURL(url: String) {
15711
+ @inlinable public class func revokeObjectURL(url: String) {
15712
15712
let this = constructor!
15713
15713
_ = this[Strings.revokeObjectURL].function!(this: this, arguments: [_toJSValue(url)])
15714
15714
}
@@ -16039,13 +16039,13 @@ public class VideoDecoder: JSBridgedClass {
16039
16039
_ = this[Strings.close].function!(this: this, arguments: [])
16040
16040
}
16041
16041
16042
- @inlinable public static func isConfigSupported(config: VideoDecoderConfig) -> JSPromise {
16042
+ @inlinable public class func isConfigSupported(config: VideoDecoderConfig) -> JSPromise {
16043
16043
let this = constructor!
16044
16044
return this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
16045
16045
}
16046
16046
16047
16047
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
16048
- @inlinable public static func isConfigSupported(config: VideoDecoderConfig) async throws -> VideoDecoderSupport {
16048
+ @inlinable public class func isConfigSupported(config: VideoDecoderConfig) async throws -> VideoDecoderSupport {
16049
16049
let this = constructor!
16050
16050
let _promise: JSPromise = this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
16051
16051
return try await _promise.value.fromJSValue()!
@@ -16203,13 +16203,13 @@ public class VideoEncoder: JSBridgedClass {
16203
16203
_ = this[Strings.close].function!(this: this, arguments: [])
16204
16204
}
16205
16205
16206
- @inlinable public static func isConfigSupported(config: VideoEncoderConfig) -> JSPromise {
16206
+ @inlinable public class func isConfigSupported(config: VideoEncoderConfig) -> JSPromise {
16207
16207
let this = constructor!
16208
16208
return this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
16209
16209
}
16210
16210
16211
16211
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
16212
- @inlinable public static func isConfigSupported(config: VideoEncoderConfig) async throws -> VideoEncoderSupport {
16212
+ @inlinable public class func isConfigSupported(config: VideoEncoderConfig) async throws -> VideoEncoderSupport {
16213
16213
let this = constructor!
16214
16214
let _promise: JSPromise = this[Strings.isConfigSupported].function!(this: this, arguments: [_toJSValue(config)]).fromJSValue()!
16215
16215
return try await _promise.value.fromJSValue()!
0 commit comments