Skip to content

Commit 1f8710b

Browse files
authored
Adopt Foundation Essentials in compat target (#725)
1 parent f458fb6 commit 1f8710b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/JavaScriptFoundationCompat/Data+JSValue.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
#if canImport(FoundationEssentials)
2+
import FoundationEssentials
3+
#else
14
import Foundation
5+
#endif
26
import JavaScriptKit
37

48
/// Data <-> Uint8Array conversion. The conversion is lossless and copies the bytes at most once per conversion

0 commit comments

Comments
 (0)