react-native-macos 0.66.47 → 0.66.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/WebSocket/RCTSRWebSocket.m +23 -0
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -540,10 +540,33 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
|
|
540
540
|
// ]TODO(macOS ISS#2323203)
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
+
// [TODO(macOS GH#774)
|
|
544
|
+
// We've seen a rare ASan crash where _inputStream seems to be invalid. This is just a safety check.
|
|
545
|
+
#if DEBUG
|
|
546
|
+
[self _validateStream:_outputStream name:@"_outputStream"];
|
|
547
|
+
[self _validateStream:_inputStream name:@"_inputStream"];
|
|
548
|
+
#endif
|
|
549
|
+
// ]TODO(macOS GH#774)
|
|
550
|
+
|
|
543
551
|
[_outputStream open];
|
|
544
552
|
[_inputStream open];
|
|
545
553
|
}
|
|
546
554
|
|
|
555
|
+
// [TODO(macOS GH#774)
|
|
556
|
+
#if DEBUG
|
|
557
|
+
- (void)_validateStream:(NSStream *)stream name:(NSString *)name {
|
|
558
|
+
NSStreamStatus status = stream.streamStatus;
|
|
559
|
+
if (status != NSStreamStatusNotOpen) {
|
|
560
|
+
RCTLogWarn(@"%@ was already opened, why are we opening it again? status=%@", name, @(status));
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (stream.delegate == nil) {
|
|
564
|
+
RCTLogError(@"%@'s delegate is nil, did we clean it up too early?", name);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
#endif
|
|
568
|
+
// ]TODO(macOS GH#774)
|
|
569
|
+
|
|
547
570
|
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
|
|
548
571
|
{
|
|
549
572
|
[_outputStream scheduleInRunLoop:aRunLoop forMode:mode];
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED