File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,6 @@ public class JSObject: Equatable {
206206 /// This allows access to the global properties and global names by accessing the `JSObject` returned.
207207 public static var global : JSObject { return _global }
208208
209- // `JSObject` storage itself is immutable, and use of `JSObject.global` from other
210- // threads maintains the same semantics as `globalThis` in JavaScript.
211209 @LazyThreadLocal ( initialize: {
212210 return JSObject ( id: _JS_Predef_Value_Global)
213211 } )
Original file line number Diff line number Diff line change @@ -78,8 +78,11 @@ final class ThreadLocal<Value>: Sendable {
7878 }
7979#else
8080 // Fallback implementation for platforms that don't support pthread
81-
81+ #if compiler(>=5.10)
8282 nonisolated ( unsafe) var wrappedValue: Value ?
83+ #else
84+ var wrappedValue : Value ?
85+ #endif
8386
8487 init ( ) where Value: AnyObject {
8588 wrappedValue = nil
You can’t perform that action at this time.
0 commit comments