Skip to content

Commit b0b1f00

Browse files
[wasm] Assume WASI is single-threaded and mark global storage nonisolated(unsafe)
1 parent f0a3631 commit b0b1f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationXML/XMLParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ open class XMLParser : NSObject {
471471
open var allowedExternalEntityURLs: Set<URL>?
472472

473473
#if os(WASI)
474-
private static var _currentParser: XMLParser?
474+
private nonisolated(unsafe) static var _currentParser: XMLParser?
475475
#endif
476476

477477
internal static func currentParser() -> XMLParser? {

0 commit comments

Comments
 (0)