Skip to content

Commit b5fa198

Browse files
Merge pull request #4918 from kateinoigakukun/pr-0df99f952c1c29bd10a48d6700a55e6668a839ca
[wasm] Port Sources/Foundation/NSObjCRuntime.swift
2 parents e7b4cbf + 7226a6e commit b5fa198

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

Sources/Foundation/NSObjCRuntime.swift

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
264264
(ProcessInfo.self, "NSProcessInfo"),
265265
(Port.self, "NSPort"),
266266
(PortMessage.self, "NSPortMessage"),
267-
(SocketPort.self, "NSSocketPort"),
268267
(Bundle.self, "NSBundle"),
269268
(ByteCountFormatter.self, "NSByteCountFormatter"),
270269
(Host.self, "NSHost"),
@@ -279,20 +278,13 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
279278
(JSONSerialization.self, "NSJSONSerialization"),
280279
(LengthFormatter.self, "NSLengthFormatter"),
281280
(MassFormatter.self, "NSMassFormatter"),
282-
(NotificationQueue.self, "NSNotificationQueue"),
283281
(NumberFormatter.self, "NSNumberFormatter"),
284-
(Operation.self, "NSOperation"),
285-
(OperationQueue.self, "NSOperationQueue"),
286282
(OutputStream.self, "NSOutputStream"),
287283
(PersonNameComponentsFormatter.self, "NSPersonNameComponentsFormatter"),
288284
(Pipe.self, "NSPipe"),
289-
(Progress.self, "NSProgress"),
290285
(PropertyListSerialization.self, "NSPropertyListSerialization"),
291-
(RunLoop.self, "NSRunLoop"),
292286
(Scanner.self, "NSScanner"),
293287
(Stream.self, "NSStream"),
294-
(Thread.self, "NSThread"),
295-
(Timer.self, "NSTimer"),
296288
(UserDefaults.self, "NSUserDefaults"),
297289
(FileManager.DirectoryEnumerator.self, "NSDirectoryEnumerator"),
298290
(Dimension.self, "NSDimension"),
@@ -322,8 +314,20 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
322314
(UnitVolume.self, "NSUnitVolume"),
323315
(UnitTemperature.self, "NSUnitTemperature"),
324316
]
325-
#if !(os(iOS) || os(Android))
317+
#if !(os(iOS) || os(Android) || os(WASI))
326318
map.append((Process.self, "NSTask"))
319+
#endif
320+
#if !os(WASI)
321+
map += [
322+
(NotificationQueue.self, "NSNotificationQueue"),
323+
(Operation.self, "NSOperation"),
324+
(OperationQueue.self, "NSOperationQueue"),
325+
(SocketPort.self, "NSSocketPort"),
326+
(Progress.self, "NSProgress"),
327+
(RunLoop.self, "NSRunLoop"),
328+
(Thread.self, "NSThread"),
329+
(Timer.self, "NSTimer"),
330+
]
327331
#endif
328332
return map
329333
}()

0 commit comments

Comments
 (0)