Skip to content

Commit 8b33db5

Browse files
committed
Disable createSyncAccessHandle API
1 parent 2958912 commit 8b33db5

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

Sources/FileSystem/Generated.swift

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -194,17 +194,9 @@ public class FileSystemFileHandle: FileSystemHandle {
194194
return try await _promise.value.fromJSValue()!
195195
}
196196

197-
@inlinable public func createSyncAccessHandle() -> JSPromise {
198-
let this = jsObject
199-
return this[Strings.createSyncAccessHandle].function!(this: this, arguments: []).fromJSValue()!
200-
}
197+
// XXX: member 'createSyncAccessHandle' is ignored
201198

202-
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
203-
@inlinable public func createSyncAccessHandle() async throws -> FileSystemSyncAccessHandle {
204-
let this = jsObject
205-
let _promise: JSPromise = this[Strings.createSyncAccessHandle].function!(this: this, arguments: []).fromJSValue()!
206-
return try await _promise.value.fromJSValue()!
207-
}
199+
// XXX: member 'createSyncAccessHandle' is ignored
208200
}
209201

210202
public class FileSystemGetDirectoryOptions: BridgedDictionary {
@@ -556,7 +548,6 @@ public class WriteParams: BridgedDictionary {
556548
@usableFromInline static let accept: JSString = "accept"
557549
@usableFromInline static let at: JSString = "at"
558550
@usableFromInline static let create: JSString = "create"
559-
@usableFromInline static let createSyncAccessHandle: JSString = "createSyncAccessHandle"
560551
@usableFromInline static let createWritable: JSString = "createWritable"
561552
@usableFromInline static let data: JSString = "data"
562553
@usableFromInline static let description: JSString = "description"

Sources/WebIDLToSwift/IDLBuilder.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ enum IDLBuilder {
6767
// manually implemented
6868
"HTMLCanvasElement": ["getContext"],
6969
"OffscreenCanvas": ["getContext"],
70+
// [Exposed] is unsupported, manually disable affected symbols:
71+
"FileSystemFileHandle": ["createSyncAccessHandle"],
7072
],
7173
types: merged.types
7274
)

0 commit comments

Comments
 (0)