File tree 2 files changed +4
-3
lines changed
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 {
206
206
/// This allows access to the global properties and global names by accessing the `JSObject` returned.
207
207
public static var global : JSObject { return _global }
208
208
209
- // `JSObject` storage itself is immutable, and use of `JSObject.global` from other
210
- // threads maintains the same semantics as `globalThis` in JavaScript.
211
209
@LazyThreadLocal ( initialize: {
212
210
return JSObject ( id: _JS_Predef_Value_Global)
213
211
} )
Original file line number Diff line number Diff line change @@ -78,8 +78,11 @@ final class ThreadLocal<Value>: Sendable {
78
78
}
79
79
#else
80
80
// Fallback implementation for platforms that don't support pthread
81
-
81
+ #if compiler(>=5.10)
82
82
nonisolated ( unsafe) var wrappedValue: Value ?
83
+ #else
84
+ var wrappedValue : Value ?
85
+ #endif
83
86
84
87
init ( ) where Value: AnyObject {
85
88
wrappedValue = nil
You can’t perform that action at this time.
0 commit comments