react-native-tvos 0.76.6-0 → 0.77.0-0
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/ActionSheetIOS/ActionSheetIOS.d.ts +1 -0
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +13 -0
- package/Libraries/Animated/AnimatedEvent.js +1 -1
- package/Libraries/Animated/AnimatedImplementation.js +2 -2
- package/Libraries/Animated/NativeAnimatedAllowlist.js +20 -9
- package/Libraries/Animated/animations/Animation.js +60 -25
- package/Libraries/Animated/animations/DecayAnimation.js +26 -38
- package/Libraries/Animated/animations/SpringAnimation.js +33 -39
- package/Libraries/Animated/animations/TimingAnimation.js +34 -42
- package/Libraries/Animated/components/AnimatedFlatList.js +1 -1
- package/Libraries/Animated/components/AnimatedSectionList.js +3 -1
- package/Libraries/Animated/createAnimatedComponent.js +60 -33
- package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +1 -1
- package/Libraries/Animated/nodes/AnimatedNode.js +39 -45
- package/Libraries/Animated/nodes/AnimatedObject.js +13 -3
- package/Libraries/Animated/nodes/AnimatedProps.js +104 -46
- package/Libraries/Animated/nodes/AnimatedStyle.js +116 -39
- package/Libraries/Animated/nodes/AnimatedTransform.js +56 -23
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -3
- package/Libraries/Animated/useAnimatedProps.js +41 -35
- package/Libraries/AppDelegate/RCTAppDelegate.h +10 -64
- package/Libraries/AppDelegate/RCTAppDelegate.mm +23 -21
- package/Libraries/AppDelegate/RCTAppSetupUtils.h +5 -1
- package/Libraries/AppDelegate/RCTAppSetupUtils.mm +8 -14
- package/Libraries/AppDelegate/RCTArchConfiguratorProtocol.h +32 -0
- package/Libraries/AppDelegate/RCTDependencyProvider.h +26 -0
- package/Libraries/AppDelegate/RCTRootViewFactory.h +6 -2
- package/Libraries/AppDelegate/RCTRootViewFactory.mm +27 -43
- package/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h +56 -0
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +2 -1
- package/Libraries/Blob/React-RCTBlob.podspec +3 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +19 -3
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +77 -5
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +4 -4
- package/Libraries/Components/Button.js +9 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +3 -1
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -0
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
- package/Libraries/Components/Pressable/Pressable.js +7 -7
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +13 -7
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +3 -2
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +4 -4
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +0 -1
- package/Libraries/Components/ScrollView/ScrollView.js +51 -90
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
- package/Libraries/Components/ScrollView/ScrollViewContext.js +2 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +0 -2
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +8 -9
- package/Libraries/Components/Switch/Switch.js +8 -6
- package/Libraries/Components/TV/TVFocusGuideView.js +2 -5
- package/Libraries/Components/TextInput/InputAccessoryView.js +1 -1
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +4 -4
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +6 -4
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +2 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +27 -4
- package/Libraries/Components/TextInput/TextInput.flow.js +36 -19
- package/Libraries/Components/TextInput/TextInput.js +38 -14
- package/Libraries/Components/TextInput/TextInputState.js +11 -13
- package/Libraries/Components/Touchable/BoundingDimensions.js +11 -3
- package/Libraries/Components/Touchable/Position.js +7 -2
- package/Libraries/Components/Touchable/Touchable.js +4 -0
- package/Libraries/Components/Touchable/TouchableBounce.js +6 -2
- package/Libraries/Components/Touchable/TouchableHighlight.js +5 -5
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +7 -7
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +1 -2
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +6 -1
- package/Libraries/Components/View/View.js +6 -11
- package/Libraries/Components/View/ViewNativeComponent.js +8 -111
- package/Libraries/Components/View/ViewPropTypes.d.ts +7 -0
- package/Libraries/Components/View/ViewPropTypes.js +0 -3
- package/Libraries/Core/ExceptionsManager.js +50 -29
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/__mocks__/NativeExceptionsManager.js +0 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -10
- package/Libraries/Core/setUpDeveloperTools.js +1 -5
- package/Libraries/Core/setUpErrorHandling.js +20 -18
- package/Libraries/Core/setUpReactDevTools.js +107 -8
- package/Libraries/Core/setUpSegmentFetcher.js +1 -0
- package/Libraries/Core/setUpTimers.js +21 -18
- package/Libraries/Debugging/DebuggingOverlay.js +4 -5
- package/Libraries/Image/AssetSourceResolver.js +12 -1
- package/Libraries/Image/Image.android.js +1 -5
- package/Libraries/Image/Image.d.ts +20 -29
- package/Libraries/Image/Image.ios.js +0 -2
- package/Libraries/Image/ImageBackground.js +2 -5
- package/Libraries/Image/ImageProps.js +7 -6
- package/Libraries/Image/ImageResizeMode.d.ts +8 -1
- package/Libraries/Image/ImageResizeMode.js +4 -1
- package/Libraries/Image/ImageSource.d.ts +0 -2
- package/Libraries/Image/ImageSource.js +0 -2
- package/Libraries/Image/ImageTypes.flow.js +11 -9
- package/Libraries/Image/ImageUtils.js +6 -3
- package/Libraries/Image/ImageViewNativeComponent.js +5 -3
- package/Libraries/Image/RCTImageUtils.mm +2 -0
- package/Libraries/Image/RCTResizeMode.h +4 -1
- package/Libraries/Image/RCTResizeMode.mm +1 -0
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Inspector/Inspector.js +1 -0
- package/Libraries/Inspector/NetworkOverlay.js +4 -0
- package/Libraries/Inspector/ReactDevToolsOverlay.js +8 -14
- package/Libraries/Inspector/getInspectorDataForViewAtPoint.js +3 -5
- package/Libraries/Interaction/InteractionManager.js +6 -1
- package/Libraries/Interaction/InteractionManagerStub.js +176 -0
- package/Libraries/Interaction/TouchHistoryMath.js +22 -19
- package/Libraries/JSInspector/NetworkAgent.js +1 -1
- package/Libraries/LinkingIOS/RCTLinkingManager.mm +2 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/Lists/FlatList.d.ts +1 -2
- package/Libraries/Lists/FlatList.js +2 -2
- package/Libraries/Lists/SectionListModern.js +7 -7
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +2 -2
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +3 -3
- package/Libraries/LogBox/LogBox.js +18 -5
- package/Libraries/LogBox/LogBoxInspectorContainer.js +1 -1
- package/Libraries/LogBox/LogBoxNotificationContainer.js +3 -3
- package/Libraries/LogBox/UI/AnsiHighlight.js +26 -17
- package/Libraries/LogBox/UI/LogBoxButton.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +6 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +1 -1
- package/Libraries/LogBox/UI/LogBoxMessage.js +2 -2
- package/Libraries/LogBox/UI/LogBoxNotification.js +1 -1
- package/Libraries/Modal/Modal.d.ts +12 -0
- package/Libraries/Modal/Modal.js +31 -4
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +72 -1
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +2 -1
- package/Libraries/NativeComponent/NativeComponentRegistry.js +3 -3
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +0 -1
- package/Libraries/NativeComponent/TVViewConfig.js +1 -0
- package/Libraries/Network/FormData.js +11 -3
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XHRInterceptor.js +63 -14
- package/Libraries/Network/XMLHttpRequest.js +26 -1
- package/Libraries/NewAppScreen/components/HermesBadge.js +1 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +49 -2
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -4
- package/Libraries/Pressability/HoverState.js +2 -0
- package/Libraries/Pressability/Pressability.js +4 -5
- package/Libraries/Pressability/usePressability.js +4 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/ReactNative/AppContainer.js +1 -1
- package/Libraries/ReactNative/AppRegistry.js +1 -11
- package/Libraries/ReactNative/DisplayMode.js +1 -1
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +2 -3
- package/Libraries/ReactNative/RendererImplementation.js +18 -17
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +1 -3
- package/Libraries/ReactNative/renderApplication.js +9 -8
- package/Libraries/ReactNative/requireNativeComponent.js +5 -2
- package/Libraries/Renderer/shims/ReactFabric.js +3 -3
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +3 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.js +22 -35
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +5 -6
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/StyleSheet/StyleSheet.js +7 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +13 -2
- package/Libraries/StyleSheet/StyleSheetTypes.js +24 -6
- package/Libraries/StyleSheet/processBackgroundImage.js +87 -110
- package/Libraries/StyleSheet/processTransform.js +3 -34
- package/Libraries/Text/RCTTextAttributes.h +1 -2
- package/Libraries/Text/RCTTextAttributes.mm +9 -13
- package/Libraries/Text/Text.js +248 -249
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +1 -0
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +1 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +1 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.mm +24 -2
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.mm +1 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +1 -0
- package/Libraries/Text/TextNativeComponent.js +0 -1
- package/Libraries/TurboModule/TurboModuleRegistry.js +5 -5
- package/Libraries/Types/CoreEventTypes.d.ts +3 -10
- package/Libraries/Types/CoreEventTypes.js +4 -6
- package/Libraries/Utilities/Appearance.js +3 -1
- package/Libraries/Utilities/BackHandler.android.js +6 -18
- package/Libraries/Utilities/BackHandler.d.ts +0 -4
- package/Libraries/Utilities/BackHandler.ios.js +3 -16
- package/Libraries/Utilities/BackHandler.js.flow +0 -4
- package/Libraries/Utilities/HMRClient.js +3 -4
- package/Libraries/Utilities/Platform.flow.js +2 -2
- package/Libraries/Utilities/__mocks__/BackHandler.js +3 -8
- package/Libraries/Utilities/codegenNativeComponent.js +1 -1
- package/Libraries/Utilities/setAndForwardRef.js +2 -2
- package/Libraries/Utilities/useMergeRefs.js +26 -7
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/WebSocket/WebSocketEvent.js +4 -1
- package/Libraries/WebSocket/WebSocketInterceptor.js +31 -13
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +6 -5
- package/Libraries/promiseRejectionTrackingOptions.js +1 -1
- package/React/Base/RCTBridge.h +3 -0
- package/React/Base/RCTBridge.mm +12 -11
- package/React/Base/RCTBridgeModule.h +1 -9
- package/React/Base/RCTBridgeProxy.h +3 -0
- package/React/Base/RCTBridgeProxy.mm +10 -0
- package/React/Base/RCTCallInvoker.mm +5 -0
- package/React/Base/RCTConstants.h +2 -12
- package/React/Base/RCTConstants.m +3 -31
- package/React/Base/RCTConvert.mm +3 -0
- package/React/Base/RCTKeyCommands.m +0 -2
- package/React/Base/RCTModuleData.h +1 -7
- package/React/Base/RCTModuleData.mm +27 -34
- package/React/Base/RCTModuleMethod.mm +1 -1
- package/React/Base/RCTTouchEvent.m +1 -1
- package/React/Base/RCTUtils.h +1 -1
- package/React/Base/RCTUtils.m +9 -10
- package/React/Base/RCTVersion.m +2 -2
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +7 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +2 -5
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h +1 -1
- package/React/CoreModules/PlatformStubs/RCTStatusBarManager.mm +57 -0
- package/React/CoreModules/RCTAccessibilityManager.h +1 -0
- package/React/CoreModules/RCTAccessibilityManager.mm +27 -0
- package/React/CoreModules/RCTActionSheetManager.mm +14 -7
- package/React/CoreModules/RCTAppearance.h +1 -1
- package/React/CoreModules/RCTAppearance.mm +8 -2
- package/React/CoreModules/RCTDevLoadingView.mm +42 -25
- package/React/CoreModules/RCTDevMenu.mm +5 -1
- package/{ReactAndroid/src/main/java/com/facebook/perftest/PerfTestConfig.java → React/CoreModules/RCTDevToolsRuntimeSettingsModule.h} +3 -7
- package/React/CoreModules/RCTDevToolsRuntimeSettingsModule.mm +58 -0
- package/React/CoreModules/RCTDeviceInfo.mm +4 -1
- package/React/CoreModules/RCTEventDispatcher.mm +1 -1
- package/React/CoreModules/RCTExceptionsManager.h +2 -6
- package/React/CoreModules/RCTExceptionsManager.mm +35 -30
- package/React/CoreModules/React-CoreModules.podspec +12 -2
- package/React/CxxBridge/RCTCxxBridge.mm +20 -23
- package/React/CxxModule/RCTCxxMethod.mm +10 -2
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +1 -5
- package/React/DevSupport/RCTPackagerConnection.mm +11 -0
- package/React/DevSupport/RCTPausedInDebuggerOverlayController.mm +5 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2395 -0
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2854 -0
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI-generated.cpp +2982 -0
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +8201 -0
- package/React/Fabric/AppleEventBeat.cpp +31 -0
- package/{ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.h → React/Fabric/AppleEventBeat.h} +8 -11
- package/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm +0 -8
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +0 -1
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +3 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +106 -59
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +2 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +35 -15
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +9 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +161 -96
- package/React/Fabric/Mounting/RCTMountingManager.h +1 -1
- package/React/Fabric/Mounting/RCTMountingManager.mm +1 -2
- package/React/Fabric/RCTScheduler.h +3 -2
- package/React/Fabric/RCTScheduler.mm +5 -8
- package/React/Fabric/RCTSurfacePointerHandler.mm +8 -6
- package/React/Fabric/RCTSurfacePresenter.mm +6 -18
- package/React/Fabric/Surface/RCTFabricSurface.mm +7 -6
- package/React/Fabric/Utils/PlatformRunLoopObserver.h +6 -3
- package/React/Fabric/Utils/PlatformRunLoopObserver.mm +2 -5
- package/React/Fabric/Utils/RCTLinearGradient.h +19 -0
- package/React/Fabric/Utils/RCTLinearGradient.mm +134 -0
- package/React/I18n/FBXXHashUtils.h +10 -8
- package/React/Inspector/RCTCxxInspectorPackagerConnection.mm +3 -0
- package/React/Inspector/RCTCxxInspectorPackagerConnectionDelegate.mm +3 -0
- package/React/Inspector/RCTCxxInspectorWebSocketAdapter.mm +12 -1
- package/React/Inspector/RCTInspector.mm +1 -1
- package/React/Modules/{RCTUIManager.m → RCTUIManager.mm} +7 -4
- package/React/React-RCTFBReactNativeSpec.podspec +87 -0
- package/React/React-RCTFabric.podspec +3 -1
- package/React/Tests/Text/RCTAttributedTextUtilsTest.mm +274 -0
- package/React/Tests/Text/RCTParagraphComponentViewTests.mm +20 -20
- package/React/Tests/Text/RCTTextAttributesTest.mm +49 -0
- package/React/Views/RCTBorderDrawing.h +5 -5
- package/React/Views/RCTBorderDrawing.m +21 -23
- package/React/Views/{RCTComponentData.m → RCTComponentData.mm} +5 -4
- package/React/Views/RCTLayout.m +3 -0
- package/React/Views/RCTModalHostViewController.m +1 -1
- package/React/Views/RCTModalHostViewManager.m +3 -23
- package/React/Views/RCTView.m +9 -10
- package/React/Views/RCTViewManager.m +1 -1
- package/React/Views/ScrollView/RCTScrollEvent.m +3 -0
- package/React/Views/ScrollView/RCTScrollView.h +1 -1
- package/React/Views/ScrollView/RCTScrollView.m +80 -26
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -0
- package/React/third-party.xcconfig +1 -1
- package/React-Core.podspec +4 -2
- package/ReactAndroid/api/ReactAndroid.api +339 -814
- package/ReactAndroid/build.gradle.kts +48 -13
- package/ReactAndroid/cmake-utils/ReactNative-application.cmake +1 -1
- package/ReactAndroid/gradle.properties +8 -2
- package/ReactAndroid/hermes-engine/build.gradle.kts +28 -26
- package/ReactAndroid/src/main/AndroidManifest.xml +1 -1
- package/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/DebugOverlayTag.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/NoopPrinter.kt +4 -5
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/Printer.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/PrinterHolder.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/debug/tags/ReactDebugOverlayTags.kt +45 -0
- package/ReactAndroid/src/main/java/com/facebook/proguard/annotations/KeepGettersAndSetters.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/BaseReactPackage.kt +131 -0
- package/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/NativeModuleRegistryBuilder.kt +61 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +74 -34
- package/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +109 -27
- package/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +25 -7
- package/ReactAndroid/src/main/java/com/facebook/react/ReactHost.kt +35 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +43 -27
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackage.kt +53 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackageHelper.kt +43 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackageTurboModuleManagerDelegate.java +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/{ViewManagerOnDemandReactPackage.java → ViewManagerOnDemandReactPackage.kt} +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/InterpolationAnimatedNode.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +22 -30
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ObjectAnimatedNode.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/TransformAnimatedNode.kt +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeReactContext.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.kt +9 -10
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ColorPropConverter.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CxxCallbackImpl.java +3 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicNative.kt +2 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{InvalidIteratorException.java → InvalidIteratorException.kt} +4 -9
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{JSApplicationCausedNativeException.java → JSApplicationCausedNativeException.kt} +7 -16
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationIllegalArgumentException.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.kt +148 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.kt +180 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArgumentsParseException.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.kt +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NoSuchKeyException.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{ObjectAlreadyConsumedException.java → ObjectAlreadyConsumedException.kt} +4 -9
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactIgnorableMountingException.kt +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNoCrashBridgeNotAllowedSoftException.kt +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNoCrashSoftException.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactSoftExceptionLogger.kt +65 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.kt +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.kt +8 -13
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{RetryableMountingLayerException.java → RetryableMountingLayerException.kt} +6 -11
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManagerProvider.kt +1 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.kt +52 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.kt +6 -9
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/interop/InteropModuleRegistry.kt +49 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/{SurfaceDelegate.java → SurfaceDelegate.kt} +11 -11
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegateFactory.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/futures/SimpleSettableFuture.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/network/OkHttpCallUtil.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.kt +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt +14 -15
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactHost.kt +52 -3
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultTurboModuleManagerDelegate.kt +14 -18
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgelessDevSupportManager.java +124 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.kt +33 -26
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +6 -3
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +28 -38
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialog.kt +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReactInstanceDevHelper.java +12 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialogSurfaceDelegate.java +37 -3
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReleaseDevSupportManager.kt +3 -6
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java +23 -5
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.kt +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/DevToolsReactPerfLogger.java +6 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +24 -26
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/{BindingImpl.kt → FabricUIManagerBinding.kt} +26 -20
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerProviderImpl.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/LongStreamingStats.kt +62 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java +10 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/SurfaceHandlerBinding.java +10 -57
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +5 -17
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +45 -62
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +10 -18
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DestroyUnmountedViewMountItem.kt +30 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/FabricNameComponentMapping.kt +3 -9
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +27 -11
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/MountItemFactory.kt +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.kt +63 -0
- package/ReactAndroid/src/main/java/com/facebook/react/interfaces/exceptionmanager/ReactJsExceptionHandler.kt +20 -10
- package/ReactAndroid/src/main/java/com/facebook/react/interfaces/fabric/ReactSurface.kt +10 -10
- package/ReactAndroid/src/main/java/com/facebook/react/interfaces/fabric/SurfaceHandler.kt +0 -11
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +80 -66
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsAccessor.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +107 -124
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +25 -27
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +25 -29
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +136 -144
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +23 -27
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeNewArchitectureFeatureFlagsDefaults.kt +25 -22
- package/ReactAndroid/src/main/java/com/facebook/react/internal/interop/InteropEventEmitter.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfo.kt +11 -16
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/AccessibilityInfoModule.kt +121 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.kt +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.kt +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.kt +0 -11
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactChoreographer.kt +7 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devtoolsruntimesettings/ReactDevToolsRuntimeSettingsModule.kt +49 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java +57 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/DialogTitle.kt +55 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.kt +21 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ImageCacheControl.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactNetworkImageRequest.kt +6 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactOkHttpNetworkFetcher.kt +19 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/SystraceRequestListener.kt +21 -14
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/XmlFormat.kt +143 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.kt +5 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +270 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/PermissionsModule.kt +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/reactdevtoolssettings/ReactDevToolsSettingsManagerModule.kt +34 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/share/ShareModule.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/sound/SoundManagerModule.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoHelpers.kt +126 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.kt +87 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.kt +8 -4
- package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/NativeModulePerfLogger.kt +11 -11
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessCatalystInstance.kt +15 -8
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +153 -81
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImplDevHelper.kt +75 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.java +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceImpl.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/cxxreactpackage/CxxReactPackage.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/{Continuation.java → Continuation.kt} +4 -8
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/{ExecutorException.java → ExecutorException.kt} +3 -9
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/Task.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/TaskCompletionSource.kt +50 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/UnobservedErrorNotifier.kt +27 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/{UnobservedTaskException.java → UnobservedTaskException.kt} +2 -8
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.kt +272 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt +398 -62
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +42 -36
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerDelegate.kt +40 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BlendModeHelper.kt +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FilterHelper.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.kt +12 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +13 -14
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/{ReactClippingProhibitedView.java → ReactClippingProhibitedView.kt} +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/{ReactCompoundView.java → ReactCompoundView.kt} +3 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/{ReactCompoundViewGroup.java → ReactCompoundViewGroup.kt} +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupDrawingOrderHelper.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.kt +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/ReactProp.java +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/ReactPropGroup.java +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/ReactPropertyHolder.java +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener.kt +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/BackgroundDrawable.kt +257 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/BorderDrawable.kt +1071 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/CSSBackgroundDrawable.java +11 -9
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/CompositeBackgroundDrawable.kt +200 -24
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/InsetBoxShadowDrawable.kt +16 -20
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/OutlineDrawable.kt +189 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/OutsetBoxShadowDrawable.kt +15 -11
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/BlackHoleEventDispatcher.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEvent.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BackgroundImageLayer.kt +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderColors.kt +107 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderRadiusStyle.kt +53 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BoxShadow.kt +14 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/ComputedBorderRadius.kt +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/Gradient.kt +20 -29
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/LinearGradient.kt +137 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/OutlineStyle.kt +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/ReactFindViewUtil.kt +129 -0
- package/ReactAndroid/src/main/java/com/facebook/react/util/JSStackTrace.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.kt +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/debuggingoverlay/DebuggingOverlayManager.kt +96 -90
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMode.kt +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageDownloadListener.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.kt +8 -56
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.kt +74 -171
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.kt +7 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.kt +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.kt +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.kt +24 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarContainerView.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.kt +25 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/safeareaview/ReactSafeAreaView.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/safeareaview/ReactSafeAreaViewManager.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerLegacyView.kt +46 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerViewManager.kt +27 -7
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +56 -100
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +15 -93
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +44 -81
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewCommandHelper.kt +101 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +28 -49
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +12 -63
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.kt +5 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.kt +131 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/RefreshEvent.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.kt +153 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/FontMetricsUtil.kt +72 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.kt +60 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextManager.kt +45 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +12 -59
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.kt +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +20 -54
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManagerCallback.kt +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.kt +114 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/{ReactVirtualTextShadowNode.java → ReactVirtualTextShadowNode.kt} +3 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextViewManager.kt +38 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +161 -56
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextTransform.kt +48 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomLineHeightSpan.kt +25 -38
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/LegacyLineHeightSpan.kt +69 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactTextPaintHolderSpan.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +54 -58
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +16 -60
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedView.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager.kt +14 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.kt +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactClippingViewManager.kt +82 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.java +9 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +149 -351
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +489 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/WindowUtil.kt +42 -0
- package/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.kt +11 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaBoxSizing.java +33 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaErrata.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNative.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIBase.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaProps.java +4 -0
- package/ReactAndroid/src/main/jni/CMakeLists.txt +1 -0
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp +7 -0
- package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnection.cpp +4 -2
- package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnection.h +2 -0
- package/ReactAndroid/src/main/jni/react/fabric/{AsyncEventBeat.cpp → AndroidEventBeat.cpp} +10 -32
- package/ReactAndroid/src/main/jni/react/fabric/{AsyncEventBeat.h → AndroidEventBeat.h} +6 -9
- package/ReactAndroid/src/main/jni/react/fabric/Binding.h +3 -156
- package/ReactAndroid/src/main/jni/react/fabric/CoreComponentsRegistry.cpp +1 -0
- package/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp +422 -313
- package/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.h +2 -4
- package/ReactAndroid/src/main/jni/react/fabric/{Binding.cpp → FabricUIManagerBinding.cpp} +233 -151
- package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.h +174 -0
- package/ReactAndroid/src/main/jni/react/fabric/JFabricUIManager.cpp +5 -6
- package/ReactAndroid/src/main/jni/react/fabric/JFabricUIManager.h +2 -2
- package/ReactAndroid/src/main/jni/react/fabric/OnLoad.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/fabric/StateWrapperImpl.cpp +16 -48
- package/ReactAndroid/src/main/jni/react/fabric/StateWrapperImpl.h +1 -3
- package/ReactAndroid/src/main/jni/react/fabric/SurfaceHandlerBinding.cpp +8 -36
- package/ReactAndroid/src/main/jni/react/fabric/SurfaceHandlerBinding.h +2 -9
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +149 -163
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +32 -34
- package/ReactAndroid/src/main/jni/react/jni/JCallback.h +1 -1
- package/ReactAndroid/src/main/jni/react/jni/JInspector.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.cpp +2 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.h +1 -1
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.cpp +2 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.h +1 -1
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactExceptionManager.cpp +29 -8
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactExceptionManager.h +3 -1
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.cpp +2 -1
- package/ReactAndroid/src/main/jni/react/turbomodule/CMakeLists.txt +0 -1
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/BindingsInstallerHolder.cpp +12 -3
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/BindingsInstallerHolder.h +15 -4
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/OnLoad.cpp +0 -3
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/TurboModuleManager.cpp +1 -1
- package/ReactAndroid/src/main/jni/third-party/fast_float/CMakeLists.txt +13 -0
- package/ReactAndroid/src/main/jni/third-party/folly/CMakeLists.txt +5 -6
- package/ReactAndroid/src/main/res/views/alert/layout/alert_title_layout.xml +22 -0
- package/ReactCommon/React-Fabric.podspec +4 -2
- package/ReactCommon/React-FabricComponents.podspec +7 -4
- package/ReactCommon/React-FabricImage.podspec +6 -2
- package/ReactCommon/ReactCommon.podspec +5 -3
- package/ReactCommon/callinvoker/React-callinvoker.podspec +0 -6
- package/ReactCommon/cxxreact/CMakeLists.txt +0 -1
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +6 -3
- package/ReactCommon/cxxreact/JSBigString.cpp +4 -4
- package/ReactCommon/cxxreact/JSExecutor.cpp +2 -4
- package/ReactCommon/cxxreact/React-cxxreact.podspec +4 -2
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/devtoolsruntimesettings/CMakeLists.txt +22 -0
- package/ReactCommon/devtoolsruntimesettings/DevToolsRuntimeSettings.cpp +27 -0
- package/ReactCommon/devtoolsruntimesettings/DevToolsRuntimeSettings.h +56 -0
- package/ReactCommon/hermes/React-hermes.podspec +3 -1
- package/ReactCommon/jsc/JSCRuntime.cpp +9 -9
- package/ReactCommon/jserrorhandler/CMakeLists.txt +2 -1
- package/ReactCommon/jserrorhandler/JsErrorHandler.cpp +369 -98
- package/ReactCommon/jserrorhandler/JsErrorHandler.h +34 -8
- package/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +8 -4
- package/ReactCommon/jserrorhandler/StackTraceParser.cpp +317 -0
- package/ReactCommon/jserrorhandler/StackTraceParser.h +23 -0
- package/ReactCommon/jserrorhandler/tests/StackTraceParserTest.cpp +1196 -0
- package/ReactCommon/jsi/React-jsi.podspec +8 -3
- package/ReactCommon/jsi/jsi/decorator.h +16 -0
- package/ReactCommon/jsi/jsi/jsi.cpp +113 -2
- package/ReactCommon/jsi/jsi/jsi.h +19 -6
- package/ReactCommon/jsi/jsi/test/testlib.cpp +59 -0
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +4 -2
- package/ReactCommon/jsinspector-modern/HostAgent.cpp +6 -40
- package/ReactCommon/jsinspector-modern/HostAgent.h +4 -1
- package/ReactCommon/jsinspector-modern/InspectorFlags.cpp +2 -0
- package/ReactCommon/jsinspector-modern/InspectorInterfaces.cpp +8 -7
- package/ReactCommon/jsinspector-modern/InspectorInterfaces.h +2 -2
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnection.cpp +19 -9
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnection.h +4 -2
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnectionImpl.h +6 -3
- package/ReactCommon/jsinspector-modern/React-jsinspector.podspec +1 -1
- package/ReactCommon/jsinspector-modern/TracingAgent.cpp +59 -0
- package/ReactCommon/jsinspector-modern/TracingAgent.h +41 -0
- package/ReactCommon/jsinspector-modern/tests/InspectorPackagerConnectionTest.cpp +29 -33
- package/ReactCommon/jsinspector-modern/tests/JsiIntegrationTest.cpp +130 -0
- package/ReactCommon/jsinspector-modern/tests/ReactInstanceIntegrationTest.cpp +4 -13
- package/ReactCommon/logger/React-logger.podspec +2 -1
- package/ReactCommon/react/bridging/Base.h +29 -4
- package/ReactCommon/react/bridging/Convert.h +2 -2
- package/ReactCommon/react/config/ReactNativeConfig.cpp +0 -3
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +66 -59
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +67 -60
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +191 -218
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +31 -33
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +37 -45
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +15 -17
- package/ReactCommon/react/featureflags/tests/ReactNativeFeatureFlagsTest.cpp +23 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.cpp +4 -16
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.h +1 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.h +22 -22
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +65 -45
- package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +5 -2
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +2 -2
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.h +0 -8
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +4 -22
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleWithJSIBindings.h +9 -1
- package/ReactCommon/react/nativemodule/defaults/CMakeLists.txt +1 -0
- package/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.cpp +10 -0
- package/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +18 -2
- package/ReactCommon/react/nativemodule/devtoolsruntimesettings/CMakeLists.txt +24 -0
- package/ReactCommon/react/nativemodule/devtoolsruntimesettings/DevToolsRuntimeSettingsModule.cpp +35 -0
- package/ReactCommon/react/nativemodule/devtoolsruntimesettings/DevToolsRuntimeSettingsModule.h +27 -0
- package/ReactCommon/react/nativemodule/devtoolsruntimesettings/README.md +6 -0
- package/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +21 -3
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +54 -57
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +24 -26
- package/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +19 -3
- package/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +18 -3
- package/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.cpp +6 -1
- package/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.h +3 -1
- package/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +18 -3
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp +2 -1
- package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +6 -3
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleJSIBindings.cpp +5 -4
- package/ReactCommon/react/nativemodule/samples/platform/android/SampleLegacyModule.kt +277 -0
- package/ReactCommon/react/nativemodule/samples/platform/android/SampleTurboModule.kt +245 -0
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTNativeSampleTurboModuleSpec.h +4 -0
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleLegacyModule.mm +2 -2
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleTurboModule.mm +3 -2
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp +261 -28
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.h +131 -0
- package/ReactCommon/react/performance/timeline/CircularBuffer.h +133 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntry.h +53 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryBuffer.h +40 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryCircularBuffer.cpp +38 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryCircularBuffer.h +34 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryKeyedBuffer.cpp +59 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryKeyedBuffer.h +39 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryReporter.cpp +140 -206
- package/ReactCommon/react/performance/timeline/PerformanceEntryReporter.h +82 -131
- package/ReactCommon/react/performance/timeline/PerformanceObserver.cpp +92 -0
- package/ReactCommon/react/performance/timeline/PerformanceObserver.h +139 -0
- package/ReactCommon/react/performance/timeline/PerformanceObserverRegistry.cpp +34 -0
- package/ReactCommon/react/performance/timeline/PerformanceObserverRegistry.h +54 -0
- package/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +1 -0
- package/ReactCommon/react/performance/timeline/tests/CircularBufferTest.cpp +127 -0
- package/ReactCommon/react/performance/timeline/tests/PerformanceEntryReporterTest.cpp +238 -254
- package/ReactCommon/react/performance/timeline/tests/PerformanceObserverTest.cpp +272 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -4
- package/ReactCommon/react/renderer/attributedstring/AttributedString.cpp +13 -28
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +8 -6
- package/ReactCommon/react/renderer/attributedstring/conversions.h +4 -0
- package/ReactCommon/react/renderer/attributedstring/tests/AttributedStringBoxTest.cpp +3 -3
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +5 -18
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +110 -36
- package/ReactCommon/react/renderer/components/image/ImageProps.h +8 -1
- package/ReactCommon/react/renderer/components/image/ImageShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/image/conversions.h +27 -0
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.cpp +0 -1
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +0 -1
- package/ReactCommon/react/renderer/components/rncore/Props.cpp +1 -0
- package/ReactCommon/react/renderer/components/rncore/Props.h +1 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +0 -1
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +0 -11
- package/ReactCommon/react/renderer/components/rncore/States.h +0 -12
- package/ReactCommon/react/renderer/components/scrollview/AndroidHorizontalScrollContentViewComponentDescriptor.h +18 -0
- package/ReactCommon/react/renderer/components/scrollview/AndroidHorizontalScrollContentViewShadowNode.cpp +29 -0
- package/ReactCommon/react/renderer/components/scrollview/AndroidHorizontalScrollContentViewShadowNode.h +26 -0
- package/ReactCommon/react/renderer/components/scrollview/ScrollEvent.cpp +8 -6
- package/ReactCommon/react/renderer/components/scrollview/ScrollEvent.h +5 -0
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewEventEmitter.cpp +0 -8
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewEventEmitter.h +0 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +98 -100
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +0 -1
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +2 -2
- package/ReactCommon/react/renderer/components/text/BaseTextShadowNode.cpp +19 -10
- package/ReactCommon/react/renderer/components/text/ParagraphProps.cpp +18 -16
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.cpp +1 -0
- package/ReactCommon/react/renderer/components/text/tests/BaseTextShadowNodeTest.cpp +93 -0
- package/ReactCommon/react/renderer/components/textinput/BaseTextInputProps.cpp +38 -2
- package/ReactCommon/react/renderer/components/textinput/BaseTextInputProps.h +10 -0
- package/ReactCommon/react/renderer/components/textinput/{platform/ios/react/renderer/components/iostextinput/TextInputEventEmitter.cpp → TextInputEventEmitter.cpp} +3 -1
- package/ReactCommon/react/renderer/components/textinput/{platform/ios/react/renderer/components/iostextinput/TextInputEventEmitter.h → TextInputEventEmitter.h} +1 -0
- package/ReactCommon/react/renderer/components/textinput/baseConversions.h +46 -0
- package/ReactCommon/react/{utils/CoreFeatures.cpp → renderer/components/textinput/basePrimitives.h} +7 -4
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputComponentDescriptor.h +8 -6
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +44 -57
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputProps.h +1 -3
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp +3 -20
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +0 -4
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.cpp +8 -1
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.h +1 -0
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.cpp +1 -18
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.h +1 -5
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/conversions.h +0 -20
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/primitives.h +1 -20
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/propsConversions.h +0 -12
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +36 -34
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +206 -149
- package/ReactCommon/react/renderer/components/view/BaseViewProps.h +8 -2
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +48 -36
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.h +18 -18
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +2 -2
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +60 -60
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +23 -17
- package/ReactCommon/react/renderer/components/view/conversions.h +136 -68
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp +22 -20
- package/ReactCommon/react/renderer/components/view/primitives.h +2 -0
- package/ReactCommon/react/renderer/components/view/tests/LayoutTest.cpp +20 -20
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +2 -2
- package/ReactCommon/react/renderer/core/EventBeat.cpp +47 -14
- package/ReactCommon/react/renderer/core/EventBeat.h +87 -31
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +4 -9
- package/ReactCommon/react/renderer/core/EventDispatcher.h +1 -3
- package/ReactCommon/react/renderer/core/EventEmitter.h +0 -2
- package/ReactCommon/react/renderer/core/EventLogger.h +4 -1
- package/ReactCommon/react/renderer/core/EventQueue.cpp +3 -18
- package/ReactCommon/react/renderer/core/EventQueue.h +1 -8
- package/ReactCommon/react/renderer/core/LayoutPrimitives.h +1 -1
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +4 -4
- package/ReactCommon/react/renderer/core/Props.cpp +3 -2
- package/ReactCommon/react/renderer/core/RawEvent.h +6 -0
- package/ReactCommon/react/renderer/core/RawValue.h +20 -20
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +21 -28
- package/ReactCommon/react/renderer/core/ShadowNode.h +4 -13
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.cpp +24 -1
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +38 -1
- package/ReactCommon/react/renderer/core/ShadowNodeFragment.h +0 -1
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +5 -5
- package/ReactCommon/react/renderer/core/conversions.h +3 -3
- package/ReactCommon/react/renderer/core/tests/EventQueueProcessorTest.cpp +4 -2
- package/ReactCommon/react/renderer/core/tests/ShadowNodeTest.cpp +2 -51
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.h +18 -18
- package/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +2 -0
- package/ReactCommon/react/renderer/dom/DOM.cpp +4 -7
- package/ReactCommon/react/renderer/graphics/BackgroundImage.h +4 -32
- package/ReactCommon/react/renderer/graphics/LinearGradient.h +62 -0
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +4 -1
- package/ReactCommon/react/renderer/graphics/Transform.h +4 -4
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +20 -48
- package/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm +2 -2
- package/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm +2 -0
- package/ReactCommon/react/renderer/imagemanager/ImageRequest.cpp +4 -8
- package/ReactCommon/react/renderer/imagemanager/ImageRequest.h +2 -12
- package/ReactCommon/react/renderer/imagemanager/ImageResponse.h +1 -0
- package/ReactCommon/react/renderer/imagemanager/ImageResponseObserverCoordinator.cpp +27 -3
- package/ReactCommon/react/renderer/imagemanager/ImageResponseObserverCoordinator.h +15 -0
- package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +5 -2
- package/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTImageManager.mm +24 -16
- package/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTImagePrimitivesConversions.h +44 -8
- package/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTSyncImageManager.mm +4 -3
- package/ReactCommon/react/renderer/imagemanager/primitives.h +5 -0
- package/ReactCommon/react/renderer/mounting/Differentiator.cpp +36 -23
- package/ReactCommon/react/renderer/mounting/Differentiator.h +41 -2
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +12 -7
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +0 -3
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +5 -4
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +10 -130
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +2 -7
- package/ReactCommon/react/renderer/mounting/ShadowTreeDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowView.cpp +0 -8
- package/ReactCommon/react/renderer/mounting/ShadowView.h +0 -44
- package/ReactCommon/react/renderer/mounting/stubs/StubViewTree.cpp +4 -4
- package/ReactCommon/react/renderer/mounting/stubs/StubViewTree.h +1 -1
- package/ReactCommon/react/renderer/mounting/stubs/stubs.h +2 -2
- package/ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp +3 -3
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +35 -109
- package/ReactCommon/react/renderer/observers/events/EventPerformanceLogger.cpp +10 -6
- package/ReactCommon/react/renderer/observers/events/EventPerformanceLogger.h +5 -2
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserver.cpp +36 -16
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserver.h +4 -3
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserverManager.cpp +6 -2
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserverManager.h +1 -0
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.cpp +9 -6
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.h +11 -1
- package/ReactCommon/react/renderer/observers/mutation/MutationObserver.cpp +14 -16
- package/ReactCommon/react/renderer/observers/mutation/MutationObserver.h +15 -4
- package/ReactCommon/react/renderer/observers/mutation/MutationObserverManager.cpp +2 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler_Legacy.cpp +6 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler_Modern.cpp +42 -51
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +0 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +86 -68
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +33 -37
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +3 -3
- package/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +4 -2
- package/ReactCommon/react/renderer/scheduler/SchedulerToolbox.h +1 -2
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +3 -3
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm +25 -0
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +4 -10
- package/ReactCommon/react/renderer/uimanager/UIManager.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +1 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/consistency/tests/LazyShadowTreeRevisionConsistencyManagerTest.cpp +1 -1
- package/ReactCommon/react/renderer/uimanager/tests/PointerEventsProcessorTest.cpp +10 -10
- package/ReactCommon/react/runtime/React-RuntimeCore.podspec +5 -2
- package/ReactCommon/react/runtime/React-RuntimeHermes.podspec +4 -2
- package/ReactCommon/react/runtime/ReactInstance.cpp +189 -39
- package/ReactCommon/react/runtime/ReactInstance.h +1 -0
- package/ReactCommon/react/runtime/TimerManager.cpp +1 -1
- package/ReactCommon/react/runtime/hermes/HermesInstance.cpp +3 -6
- package/ReactCommon/react/runtime/iostests/RCTHostTests.mm +20 -2
- package/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +7 -2
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost+Internal.h +3 -0
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.h +14 -6
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm +59 -21
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.h +11 -6
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm +65 -27
- package/ReactCommon/react/runtime/tests/cxx/ReactInstanceTest.cpp +2 -131
- package/ReactCommon/react/timing/CMakeLists.txt +1 -1
- package/ReactCommon/react/timing/primitives.h +2 -0
- package/ReactCommon/react/utils/RunLoopObserver.cpp +2 -4
- package/ReactCommon/react/utils/RunLoopObserver.h +1 -3
- package/ReactCommon/react/utils/SharedFunction.h +1 -0
- package/ReactCommon/reactperflogger/CMakeLists.txt +4 -1
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -0
- package/ReactCommon/reactperflogger/reactperflogger/FuseboxPerfettoDataSource.cpp +143 -0
- package/ReactCommon/reactperflogger/reactperflogger/FuseboxPerfettoDataSource.h +48 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfLogger.cpp +65 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfLogger.h +35 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfetto.cpp +2 -0
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +2 -1
- package/ReactCommon/yoga/yoga/YGEnums.cpp +14 -2
- package/ReactCommon/yoga/yoga/YGEnums.h +8 -2
- package/ReactCommon/yoga/yoga/YGNodeStyle.cpp +38 -28
- package/ReactCommon/yoga/yoga/YGNodeStyle.h +3 -0
- package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.cpp +51 -117
- package/ReactCommon/yoga/yoga/algorithm/Align.h +4 -4
- package/ReactCommon/yoga/yoga/algorithm/Baseline.cpp +2 -6
- package/ReactCommon/yoga/yoga/algorithm/BoundAxis.h +13 -6
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +349 -341
- package/ReactCommon/yoga/yoga/algorithm/FlexLine.cpp +19 -18
- package/ReactCommon/yoga/yoga/algorithm/FlexLine.h +2 -4
- package/ReactCommon/yoga/yoga/enums/BoxSizing.h +40 -0
- package/ReactCommon/yoga/yoga/enums/Display.h +2 -1
- package/ReactCommon/yoga/yoga/enums/Errata.h +1 -1
- package/ReactCommon/yoga/yoga/node/LayoutableChildren.h +148 -0
- package/ReactCommon/yoga/yoga/node/Node.cpp +60 -7
- package/ReactCommon/yoga/yoga/node/Node.h +51 -9
- package/ReactCommon/yoga/yoga/style/Style.h +64 -1
- package/ReactCommon/yoga/yoga/style/StyleLength.h +0 -32
- package/ReactCommon/yoga/yoga/style/StyleValuePool.h +4 -4
- package/cli.js +2 -2
- package/gradle/libs.versions.toml +9 -8
- package/index.js +15 -8
- package/jest/setup.js +31 -0
- package/package.json +11 -13
- package/scripts/cocoapods/codegen_utils.rb +42 -17
- package/scripts/cocoapods/helpers.rb +16 -2
- package/scripts/cocoapods/new_architecture.rb +2 -0
- package/scripts/cocoapods/spm.rb +1 -1
- package/scripts/cocoapods/utils.rb +2 -0
- package/scripts/codegen/generate-artifacts-executor.js +336 -172
- package/scripts/codegen/generate-specs-cli-executor.js +3 -3
- package/scripts/codegen/templates/RCTAppDependencyProviderH.template +25 -0
- package/scripts/codegen/templates/RCTAppDependencyProviderMM.template +55 -0
- package/scripts/codegen/templates/RCTThirdPartyComponentsProviderH.template +16 -0
- package/scripts/codegen/templates/RCTThirdPartyComponentsProviderMM.template +23 -0
- package/scripts/codegen/templates/ReactAppDependencyProvider.podspec.template +34 -0
- package/scripts/generate-provider-cli.js +1 -2
- package/scripts/ios-configure-glog.sh +2 -2
- package/scripts/react-native-xcode.sh +8 -5
- package/scripts/react_native_pods.rb +16 -0
- package/sdks/.hermesversion +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +15 -9
- package/sdks/hermes-engine/hermes-utils.rb +29 -8
- package/sdks/hermes-engine/utils/build-ios-framework.sh +4 -24
- package/sdks/hermesc/linux64-bin/hermesc +0 -0
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/src/private/animated/NativeAnimatedHelper.js +18 -16
- package/src/private/animated/useAnimatedPropsMemo.js +356 -0
- package/src/private/components/HScrollViewNativeComponents.js +1 -27
- package/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js +11 -8
- package/src/private/components/VScrollViewNativeComponents.js +2 -25
- package/src/private/debugging/ReactDevToolsSettingsManager.android.js +20 -0
- package/src/private/debugging/ReactDevToolsSettingsManager.ios.js +30 -0
- package/{Libraries/ReactNative/ReactFabricInternals.js → src/private/debugging/ReactDevToolsSettingsManager.js.flow} +5 -6
- package/src/private/{fusebox → debugging}/setUpFuseboxReactDevToolsDispatcher.js +6 -0
- package/src/private/devmenu/DevMenu.d.ts +20 -0
- package/src/private/devmenu/DevMenu.js +31 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +96 -82
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +8 -2
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +17 -18
- package/src/private/fusebox/specs/NativeReactDevToolsRuntimeSettingsModule.js +34 -0
- package/src/private/setup/setUpDOM.js +14 -6
- package/src/private/setup/setUpMutationObserver.js +5 -0
- package/src/private/specs/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -0
- package/src/private/specs/components/RCTModalHostViewNativeComponent.js +8 -0
- package/src/private/specs/modules/NativeAccessibilityInfo.js +9 -0
- package/src/private/specs/modules/NativeAccessibilityManager.js +4 -0
- package/src/private/specs/modules/NativeActionSheetManager.js +2 -0
- package/src/private/specs/modules/NativeAppearance.js +4 -10
- package/src/private/specs/modules/NativeExceptionsManager.js +0 -12
- package/src/private/specs/modules/{NativeDevToolsSettingsManager.js → NativeReactDevToolsSettingsManager.js} +3 -5
- package/src/private/webapis/dom/geometry/DOMRect.js +2 -2
- package/src/private/webapis/dom/geometry/DOMRectReadOnly.js +2 -2
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +2 -3
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +102 -11
- package/src/private/webapis/intersectionobserver/IntersectionObserverEntry.js +26 -0
- package/src/private/webapis/intersectionobserver/IntersectionObserverManager.js +1 -0
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +1 -0
- package/src/private/webapis/intersectionobserver/specs/__mocks__/NativeIntersectionObserver.js +9 -0
- package/src/private/webapis/performance/EventTiming.js +13 -8
- package/src/private/webapis/performance/Performance.js +66 -73
- package/src/private/webapis/performance/PerformanceEntry.js +2 -5
- package/src/private/webapis/performance/PerformanceObserver.js +65 -164
- package/src/private/webapis/performance/RawPerformanceEntry.js +1 -1
- package/src/private/webapis/performance/UserTiming.js +11 -7
- package/src/private/webapis/performance/Utilities.js +18 -0
- package/src/private/webapis/performance/specs/NativePerformance.js +71 -2
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +267 -0
- package/third-party-podspecs/DoubleConversion.podspec +1 -0
- package/third-party-podspecs/RCT-Folly.podspec +20 -11
- package/third-party-podspecs/boost.podspec +4 -0
- package/third-party-podspecs/fast_float.podspec +29 -0
- package/third-party-podspecs/glog.podspec +2 -1
- package/types/index.d.ts +1 -1
- package/types/public/ReactNativeTypes.d.ts +4 -8
- package/types/tsconfig.json +13 -13
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.android.js +0 -35
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts +0 -20
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.ios.js +0 -49
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.js.flow +0 -19
- package/Libraries/DevToolsSettings/NativeDevToolsSettingsManager.js +0 -13
- package/React/Base/RCTRuntimeExecutorModule.h +0 -19
- package/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/DebugOverlayTag.java +0 -30
- package/ReactAndroid/src/main/java/com/facebook/debug/tags/ReactDebugOverlayTags.java +0 -38
- package/ReactAndroid/src/main/java/com/facebook/proguard/annotations/KeepGettersAndSetters.java +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/BaseReactPackage.java +0 -159
- package/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackage.java +0 -131
- package/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackageTurboModuleManagerDelegate.java +0 -57
- package/ReactAndroid/src/main/java/com/facebook/react/EagerModuleProvider.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/NativeModuleRegistryBuilder.java +0 -69
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackage.java +0 -67
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackageHelper.java +0 -56
- package/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.java +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationIllegalArgumentException.java +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java +0 -219
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java +0 -266
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArgumentsParseException.java +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.java +0 -28
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NoSuchKeyException.java +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactIgnorableMountingException.java +0 -36
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNoCrashBridgeNotAllowedSoftException.java +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNoCrashSoftException.java +0 -29
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactSoftExceptionLogger.java +0 -66
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java +0 -174
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +0 -68
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/interop/InteropModuleRegistry.java +0 -57
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegateFactory.java +0 -24
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -79
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/AndroidManifest.xml +0 -10
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.kt +0 -74
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.kt +0 -45
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/LongStreamingStats.java +0 -76
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java +0 -90
- package/ReactAndroid/src/main/java/com/facebook/react/flipper/ReactNativeFlipper.kt +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devtoolssettings/DevToolsSettingsManagerModule.kt +0 -40
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +0 -280
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoHelpers.java +0 -175
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java +0 -104
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessDevSupportManager.java +0 -159
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/TaskCompletionSource.java +0 -73
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/UnobservedErrorNotifier.java +0 -42
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -329
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerInterface.kt +0 -85
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener.java +0 -30
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/ReactFindViewUtil.java +0 -138
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerView.java +0 -82
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewCommandHelper.java +0 -141
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java +0 -151
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java +0 -194
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/FontMetricsUtil.java +0 -65
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java +0 -66
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextManager.java +0 -55
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.java +0 -153
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManagerCallback.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.java +0 -198
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextViewManager.java +0 -47
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextTransform.java +0 -63
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactClippingViewManager.java +0 -95
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundManager.java +0 -146
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +0 -588
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/CompositeTurboModuleManagerDelegate.cpp +0 -58
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/CompositeTurboModuleManagerDelegate.h +0 -48
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTRuntimeExecutor.h +0 -32
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTRuntimeExecutor.mm +0 -34
- package/ReactCommon/react/nativemodule/samples/platform/android/SampleLegacyModule.java +0 -246
- package/ReactCommon/react/nativemodule/samples/platform/android/SampleTurboModule.java +0 -281
- package/ReactCommon/react/nativemodule/webperformance/NativePerformanceObserver.cpp +0 -130
- package/ReactCommon/react/nativemodule/webperformance/NativePerformanceObserver.h +0 -91
- package/ReactCommon/react/performance/timeline/BoundedConsumableBuffer.h +0 -247
- package/ReactCommon/react/performance/timeline/tests/BoundedConsumableBufferTest.cpp +0 -219
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.cpp +0 -57
- package/ReactCommon/react/utils/CoreFeatures.h +0 -30
- package/src/private/components/useSyncOnScroll.js +0 -48
- package/src/private/fusebox/README.md +0 -12
- package/src/private/webapis/performance/specs/NativePerformanceObserver.js +0 -61
- package/src/private/webapis/performance/specs/__mocks__/NativePerformance.js +0 -67
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceObserver.js +0 -127
- package/types/experimental.d.ts +0 -59
- /package/src/private/{fusebox → debugging}/FuseboxSessionObserver.js +0 -0
|
@@ -0,0 +1,1196 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#include <gtest/gtest.h>
|
|
9
|
+
|
|
10
|
+
#include <jserrorhandler/StackTraceParser.h>
|
|
11
|
+
|
|
12
|
+
using namespace facebook::react;
|
|
13
|
+
|
|
14
|
+
#include <string>
|
|
15
|
+
#include <unordered_map>
|
|
16
|
+
|
|
17
|
+
std::unordered_map<std::string, std::string> CapturedExceptions = {
|
|
18
|
+
{"NODE_12",
|
|
19
|
+
"Error: Just an Exception\n"
|
|
20
|
+
" at promiseMe (/home/xyz/hack/asyncnode.js:11:9)\n"
|
|
21
|
+
" at async main (/home/xyz/hack/asyncnode.js:15:13)"},
|
|
22
|
+
{"NODE_ANONYM",
|
|
23
|
+
"Error\n"
|
|
24
|
+
" at Spect.get (C:\\projects\\spect\\src\\index.js:161:26)\n"
|
|
25
|
+
" at Object.get (C:\\projects\\spect\\src\\index.js:43:36)\n"
|
|
26
|
+
" at <anonymous>\n"
|
|
27
|
+
" at (anonymous function).then (C:\\projects\\spect\\src\\index.js:165:33)\n"
|
|
28
|
+
" at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:52:5)\n"
|
|
29
|
+
" at C:\\projects\\spect\\node_modules\\esm\\esm.js:1:34535\n"
|
|
30
|
+
" at C:\\projects\\spect\\node_modules\\esm\\esm.js:1:34176\n"
|
|
31
|
+
" at process.<anonymous> (C:\\projects\\spect\\node_modules\\esm\\esm.js:1:34506)\n"
|
|
32
|
+
" at Function.<anonymous> (C:\\projects\\spect\\node_modules\\esm\\esm.js:1:296856)\n"
|
|
33
|
+
" at Function.<anonymous> (C:\\projects\\spect\\node_modules\\esm\\esm.js:1:296555)"},
|
|
34
|
+
{"NODE_SPACE",
|
|
35
|
+
"Error\n"
|
|
36
|
+
" at Spect.get (C:\\project files\\spect\\src\\index.js:161:26)\n"
|
|
37
|
+
" at Object.get (C:\\project files\\spect\\src\\index.js:43:36)\n"
|
|
38
|
+
" at <anonymous>\n"
|
|
39
|
+
" at (anonymous function).then (C:\\project files\\spect\\src\\index.js:165:33)\n"
|
|
40
|
+
" at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:52:5)\n"
|
|
41
|
+
" at C:\\project files\\spect\\node_modules\\esm\\esm.js:1:34535\n"
|
|
42
|
+
" at C:\\project files\\spect\\node_modules\\esm\\esm.js:1:34176\n"
|
|
43
|
+
" at process.<anonymous> (C:\\project files\\spect\\node_modules\\esm\\esm.js:1:34506)\n"
|
|
44
|
+
" at Function.<anonymous> (C:\\project files\\spect\\node_modules\\esm\\esm.js:1:296856)\n"
|
|
45
|
+
" at Function.<anonymous> (C:\\project files\\spect\\node_modules\\esm\\esm.js:1:296555)"},
|
|
46
|
+
{"OPERA_25",
|
|
47
|
+
"TypeError: Cannot read property 'undef' of null\n"
|
|
48
|
+
" at http://path/to/file.js:47:22\n"
|
|
49
|
+
" at foo (http://path/to/file.js:52:15)\n"
|
|
50
|
+
" at bar (http://path/to/file.js:108:168)"},
|
|
51
|
+
{"CHROME_15",
|
|
52
|
+
"TypeError: Object #<Object> has no method 'undef'\n"
|
|
53
|
+
" at bar (http://path/to/file.js:13:17)\n"
|
|
54
|
+
" at bar (http://path/to/file.js:16:5)\n"
|
|
55
|
+
" at foo (http://path/to/file.js:20:5)\n"
|
|
56
|
+
" at http://path/to/file.js:24:4"},
|
|
57
|
+
{"CHROME_36",
|
|
58
|
+
"Error: Default error\n"
|
|
59
|
+
" at dumpExceptionError (http://localhost:8080/file.js:41:27)\n"
|
|
60
|
+
" at HTMLButtonElement.onclick (http://localhost:8080/file.js:107:146)\n"
|
|
61
|
+
" at I.e.fn.(anonymous function) [as index] (http://localhost:8080/file.js:10:3651)"},
|
|
62
|
+
{"CHROME_76",
|
|
63
|
+
"Error: BEEP BEEP\n"
|
|
64
|
+
" at bar (<anonymous>:8:9)\n"
|
|
65
|
+
" at async foo (<anonymous>:2:3)"},
|
|
66
|
+
{"CHROME_XX_WEBPACK",
|
|
67
|
+
"TypeError: Cannot read property 'error' of undefined\n"
|
|
68
|
+
" at TESTTESTTEST.eval(webpack:///./src/components/test/test.jsx?:295:108)\n"
|
|
69
|
+
" at TESTTESTTEST.render(webpack:///./src/components/test/test.jsx?:272:32)\n"
|
|
70
|
+
" at TESTTESTTEST.tryRender(webpack:///./~/react-transform-catch-errors/lib/index.js?:34:31)\n"
|
|
71
|
+
" at TESTTESTTEST.proxiedMethod(webpack:///./~/react-proxy/modules/createPrototypeProxy.js?:44:30)\n"
|
|
72
|
+
" at Module../pages/index.js (C:\\root\\server\\development\\pages\\index.js:182:7)"},
|
|
73
|
+
{"FIREFOX_3",
|
|
74
|
+
"()@http://127.0.0.1:8000/js/stacktrace.js:44\n"
|
|
75
|
+
"(null)@http://127.0.0.1:8000/js/stacktrace.js:31\n"
|
|
76
|
+
"printStackTrace()@http://127.0.0.1:8000/js/stacktrace.js:18\n"
|
|
77
|
+
"bar(1)@http://127.0.0.1:8000/js/file.js:13\n"
|
|
78
|
+
"bar(2)@http://127.0.0.1:8000/js/file.js:16\n"
|
|
79
|
+
"foo()@http://127.0.0.1:8000/js/file.js:20\n"
|
|
80
|
+
"@http://127.0.0.1:8000/js/file.js:24\n"},
|
|
81
|
+
{"FIREFOX_7",
|
|
82
|
+
"()@file:///G:/js/stacktrace.js:44\n"
|
|
83
|
+
"(null)@file:///G:/js/stacktrace.js:31\n"
|
|
84
|
+
"printStackTrace()@file:///G:/js/stacktrace.js:18\n"
|
|
85
|
+
"bar(1)@file:///G:/js/file.js:13\n"
|
|
86
|
+
"bar(2)@file:///G:/js/file.js:16\n"
|
|
87
|
+
"foo()@file:///G:/js/file.js:20\n"
|
|
88
|
+
"@file:///G:/js/file.js:24\n"},
|
|
89
|
+
{"FIREFOX_14",
|
|
90
|
+
"@http://path/to/file.js:48\n"
|
|
91
|
+
"dumpException3@http://path/to/file.js:52\n"
|
|
92
|
+
"onclick@http://path/to/file.js:1\n"},
|
|
93
|
+
{"FIREFOX_31",
|
|
94
|
+
"foo@http://path/to/file.js:41:13\n"
|
|
95
|
+
"bar@http://path/to/file.js:1:1\n"
|
|
96
|
+
".plugin/e.fn[c]/<@http://path/to/file.js:1:1\n"},
|
|
97
|
+
{"FIREFOX_43_EVAL",
|
|
98
|
+
"baz@http://localhost:8080/file.js line 26 > eval line 2 > eval:1:30\n"
|
|
99
|
+
"foo@http://localhost:8080/file.js line 26 > eval:2:96\n"
|
|
100
|
+
"@http://localhost:8080/file.js line 26 > eval:4:18\n"
|
|
101
|
+
"speak@http://localhost:8080/file.js:26:17\n"
|
|
102
|
+
"@http://localhost:8080/file.js:33:9"},
|
|
103
|
+
{"FIREFOX_44_NS_EXCEPTION",
|
|
104
|
+
"[2]</Bar.prototype._baz/</<@http://path/to/file.js:703:28\n"
|
|
105
|
+
"App.prototype.foo@file:///path/to/file.js:15:2\n"
|
|
106
|
+
"bar@file:///path/to/file.js:20:3\n"
|
|
107
|
+
"@file:///path/to/index.html:23:1\n"},
|
|
108
|
+
{"FIREFOX_50_RESOURCE_URL",
|
|
109
|
+
"render@resource://path/data/content/bundle.js:5529:16\n"
|
|
110
|
+
"dispatchEvent@resource://path/data/content/vendor.bundle.js:18:23028\n"
|
|
111
|
+
"wrapped@resource://path/data/content/bundle.js:7270:25"},
|
|
112
|
+
{"SAFARI_6",
|
|
113
|
+
"@http://path/to/file.js:48\n"
|
|
114
|
+
"dumpException3@http://path/to/file.js:52\n"
|
|
115
|
+
"onclick@http://path/to/file.js:82\n"
|
|
116
|
+
"[native code]"},
|
|
117
|
+
{"SAFARI_7",
|
|
118
|
+
"http://path/to/file.js:48:22\n"
|
|
119
|
+
"foo@http://path/to/file.js:52:15\n"
|
|
120
|
+
"bar@http://path/to/file.js:108:107"},
|
|
121
|
+
{"SAFARI_8",
|
|
122
|
+
"http://path/to/file.js:47:22\n"
|
|
123
|
+
"foo@http://path/to/file.js:52:15\n"
|
|
124
|
+
"bar@http://path/to/file.js:108:23"},
|
|
125
|
+
{"SAFARI_8_EVAL",
|
|
126
|
+
"eval code\n"
|
|
127
|
+
"eval@[native code]\n"
|
|
128
|
+
"foo@http://path/to/file.js:58:21\n"
|
|
129
|
+
"bar@http://path/to/file.js:109:91"},
|
|
130
|
+
{"IE_10",
|
|
131
|
+
"TypeError: Unable to get property 'undef' of undefined or null reference\n"
|
|
132
|
+
" at Anonymous function (http://path/to/file.js:48:13)\n"
|
|
133
|
+
" at foo (http://path/to/file.js:46:9)\n"
|
|
134
|
+
" at bar (http://path/to/file.js:82:1)"},
|
|
135
|
+
{"IE_11",
|
|
136
|
+
"TypeError: Unable to get property 'undef' of undefined or null reference\n"
|
|
137
|
+
" at Anonymous function (http://path/to/file.js:47:21)\n"
|
|
138
|
+
" at foo (http://path/to/file.js:45:13)\n"
|
|
139
|
+
" at bar (http://path/to/file.js:108:1)"},
|
|
140
|
+
{"IE_11_EVAL",
|
|
141
|
+
"ReferenceError: 'getExceptionProps' is undefined\n"
|
|
142
|
+
" at eval code (eval code:1:1)\n"
|
|
143
|
+
" at foo (http://path/to/file.js:58:17)\n"
|
|
144
|
+
" at bar (http://path/to/file.js:109:1)"},
|
|
145
|
+
{"CHROME_48_BLOB",
|
|
146
|
+
"Error: test\n"
|
|
147
|
+
" at Error (native)\n"
|
|
148
|
+
" at s (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:31:29146)\n"
|
|
149
|
+
" at Object.d [as add] (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:31:30039)\n"
|
|
150
|
+
" at blob:http%3A//localhost%3A8080/d4eefe0f-361a-4682-b217-76587d9f712a:15:10978\n"
|
|
151
|
+
" at blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:1:6911\n"
|
|
152
|
+
" at n.fire (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:7:3019)\n"
|
|
153
|
+
" at n.handle (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:7:2863)"},
|
|
154
|
+
{"CHROME_48_EVAL",
|
|
155
|
+
"Error: message string\n"
|
|
156
|
+
"at baz (eval at foo (eval at speak (http://localhost:8080/file.js:21:17)), <anonymous>:1:30)\n"
|
|
157
|
+
"at foo (eval at speak (http://localhost:8080/file.js:21:17), <anonymous>:2:96)\n"
|
|
158
|
+
"at eval (eval at speak (http://localhost:8080/file.js:21:17), <anonymous>:4:18)\n"
|
|
159
|
+
"at Object.speak (http://localhost:8080/file.js:21:17)\n"
|
|
160
|
+
"at http://localhost:8080/file.js:31:13\n"},
|
|
161
|
+
{"PHANTOMJS_1_19",
|
|
162
|
+
"Error: foo\n"
|
|
163
|
+
" at file:///path/to/file.js:878\n"
|
|
164
|
+
" at foo (http://path/to/file.js:4283)\n"
|
|
165
|
+
" at http://path/to/file.js:4287"},
|
|
166
|
+
{"ANDROID_REACT_NATIVE",
|
|
167
|
+
"Error: test\n"
|
|
168
|
+
"at render(/home/username/sample-workspace/sampleapp.collect.react/src/components/GpsMonitorScene.js:78:24)\n"
|
|
169
|
+
"at _renderValidatedComponentWithoutOwnerOrContext(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:1050:29)\n"
|
|
170
|
+
"at _renderValidatedComponent(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:1075:15)\n"
|
|
171
|
+
"at renderedElement(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:484:29)\n"
|
|
172
|
+
"at _currentElement(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:346:40)\n"
|
|
173
|
+
"at child(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactReconciler.js:68:25)\n"
|
|
174
|
+
"at children(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactMultiChild.js:264:10)\n"
|
|
175
|
+
"at this(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/native/ReactNativeBaseComponent.js:74:41)\n"},
|
|
176
|
+
{"ANDROID_REACT_NATIVE_PROD",
|
|
177
|
+
"value@index.android.bundle:12:1917\n"
|
|
178
|
+
"onPress@index.android.bundle:12:2336\n"
|
|
179
|
+
"touchableHandlePress@index.android.bundle:258:1497\n"
|
|
180
|
+
"[native code]\n"
|
|
181
|
+
"_performSideEffectsForTransition@index.android.bundle:252:8508\n"
|
|
182
|
+
"[native code]\n"
|
|
183
|
+
"_receiveSignal@index.android.bundle:252:7291\n"
|
|
184
|
+
"[native code]\n"
|
|
185
|
+
"touchableHandleResponderRelease@index.android.bundle:252:4735\n"
|
|
186
|
+
"[native code]\n"
|
|
187
|
+
"u@index.android.bundle:79:142\n"
|
|
188
|
+
"invokeGuardedCallback@index.android.bundle:79:459\n"
|
|
189
|
+
"invokeGuardedCallbackAndCatchFirstError@index.android.bundle:79:580\n"
|
|
190
|
+
"c@index.android.bundle:95:365\n"
|
|
191
|
+
"a@index.android.bundle:95:567\n"
|
|
192
|
+
"v@index.android.bundle:146:501\n"
|
|
193
|
+
"g@index.android.bundle:146:604\n"
|
|
194
|
+
"forEach@[native code]\n"
|
|
195
|
+
"i@index.android.bundle:149:80\n"
|
|
196
|
+
"processEventQueue@index.android.bundle:146:1432\n"
|
|
197
|
+
"s@index.android.bundle:157:88\n"
|
|
198
|
+
"handleTopLevel@index.android.bundle:157:174\n"
|
|
199
|
+
"index.android.bundle:156:572\n"
|
|
200
|
+
"a@index.android.bundle:93:276\n"
|
|
201
|
+
"c@index.android.bundle:93:60\n"
|
|
202
|
+
"perform@index.android.bundle:177:596\n"
|
|
203
|
+
"batchedUpdates@index.android.bundle:188:464\n"
|
|
204
|
+
"i@index.android.bundle:176:358\n"
|
|
205
|
+
"i@index.android.bundle:93:90\n"
|
|
206
|
+
"u@index.android.bundle:93:150\n"
|
|
207
|
+
"_receiveRootNodeIDEvent@index.android.bundle:156:544\n"
|
|
208
|
+
"receiveTouches@index.android.bundle:156:918\n"
|
|
209
|
+
"value@index.android.bundle:29:3016\n"
|
|
210
|
+
"index.android.bundle:29:955\n"
|
|
211
|
+
"value@index.android.bundle:29:2417\n"
|
|
212
|
+
"value@index.android.bundle:29:927\n"
|
|
213
|
+
"[native code]"},
|
|
214
|
+
{"IOS_REACT_NATIVE_1",
|
|
215
|
+
"_exampleFunction@/home/test/project/App.js:125:13\n"
|
|
216
|
+
"_depRunCallbacks@/home/test/project/node_modules/dep/index.js:77:45\n"
|
|
217
|
+
"tryCallTwo@/home/test/project/node_modules/react-native/node_modules/promise/lib/core.js:45:5\n"
|
|
218
|
+
"doResolve@/home/test/project/node_modules/react-native/node_modules/promise/lib/core.js:200:13"},
|
|
219
|
+
{"IOS_REACT_NATIVE_2",
|
|
220
|
+
"s@33.js:1:531\n"
|
|
221
|
+
"b@1959.js:1:1469\n"
|
|
222
|
+
"onSocketClose@2932.js:1:727\n"
|
|
223
|
+
"value@81.js:1:1505\n"
|
|
224
|
+
"102.js:1:2956\n"
|
|
225
|
+
"value@89.js:1:1247\n"
|
|
226
|
+
"value@42.js:1:3311\n"
|
|
227
|
+
"42.js:1:822\n"
|
|
228
|
+
"value@42.js:1:2565\n"
|
|
229
|
+
"value@42.js:1:794\n"
|
|
230
|
+
"value@[native code]"},
|
|
231
|
+
|
|
232
|
+
{"ANONYMOUS_SOURCES",
|
|
233
|
+
"x\n"
|
|
234
|
+
"at new <anonymous> (http://www.example.com/test.js:2:1\n"
|
|
235
|
+
"at <anonymous>:1:2\n"},
|
|
236
|
+
{"NODE_JS_TEST_1",
|
|
237
|
+
"ReferenceError: test is not defined\n"
|
|
238
|
+
"at repl:1:2\n"
|
|
239
|
+
"at REPLServer.self.eval (repl.js:110:21)\n"
|
|
240
|
+
"at Interface.<anonymous> (repl.js:239:12)\n"
|
|
241
|
+
"at Interface.EventEmitter.emit (events.js:95:17)\n"
|
|
242
|
+
"at emitKey (readline.js:1095:12)\n"},
|
|
243
|
+
{"NODE_JS_TEST_2",
|
|
244
|
+
"ReferenceError: breakDown is not defined\n"
|
|
245
|
+
"at null._onTimeout (repl:1:25)\n"
|
|
246
|
+
"at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)\n"},
|
|
247
|
+
{"IO_JS",
|
|
248
|
+
"ReferenceError: test is not defined\n"
|
|
249
|
+
"at repl:1:1\n"
|
|
250
|
+
"at REPLServer.defaultEval (repl.js:154:27)\n"
|
|
251
|
+
"at bound (domain.js:254:14)\n"
|
|
252
|
+
"at REPLServer.runBound [as eval] (domain.js:267:12)\n"
|
|
253
|
+
"at REPLServer.<anonymous> (repl.js:308:12)\n"
|
|
254
|
+
"at emitOne (events.js:77:13)\n"
|
|
255
|
+
"at REPLServer.emit (events.js:169:7)\n"
|
|
256
|
+
"at REPLServer.Interface._onLine (readline.js:210:10)\n"
|
|
257
|
+
"at REPLServer.Interface._line (readline.js:549:8)\n"
|
|
258
|
+
"at REPLServer.Interface._ttyWrite (readline.js:826:14)\n"}};
|
|
259
|
+
|
|
260
|
+
TEST(StackTraceParser, nodeWithSpaceInPath) {
|
|
261
|
+
auto actualStackFrames =
|
|
262
|
+
StackTraceParser::parse(false, CapturedExceptions["NODE_SPACE"]);
|
|
263
|
+
EXPECT_EQ(actualStackFrames.size(), 9);
|
|
264
|
+
|
|
265
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
266
|
+
{R"(C:\project files\spect\src\index.js)", "Spect.get", 161, 25},
|
|
267
|
+
{R"(C:\project files\spect\src\index.js)", "Object.get", 43, 35},
|
|
268
|
+
{R"(C:\project files\spect\src\index.js)",
|
|
269
|
+
"(anonymous function).then",
|
|
270
|
+
165,
|
|
271
|
+
32},
|
|
272
|
+
{"internal/process/task_queues.js",
|
|
273
|
+
"process.runNextTicks [as _tickCallback]",
|
|
274
|
+
52,
|
|
275
|
+
4},
|
|
276
|
+
{R"(C:\project files\spect\node_modules\esm\esm.js)",
|
|
277
|
+
"<unknown>",
|
|
278
|
+
1,
|
|
279
|
+
34534},
|
|
280
|
+
{R"(C:\project files\spect\node_modules\esm\esm.js)",
|
|
281
|
+
"<unknown>",
|
|
282
|
+
1,
|
|
283
|
+
34175},
|
|
284
|
+
{R"(C:\project files\spect\node_modules\esm\esm.js)",
|
|
285
|
+
"process.<anonymous>",
|
|
286
|
+
1,
|
|
287
|
+
34505},
|
|
288
|
+
{R"(C:\project files\spect\node_modules\esm\esm.js)",
|
|
289
|
+
"Function.<anonymous>",
|
|
290
|
+
1,
|
|
291
|
+
296855},
|
|
292
|
+
{R"(C:\project files\spect\node_modules\esm\esm.js)",
|
|
293
|
+
"Function.<anonymous>",
|
|
294
|
+
1,
|
|
295
|
+
296554}};
|
|
296
|
+
|
|
297
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
298
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
299
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
300
|
+
EXPECT_EQ(
|
|
301
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
302
|
+
EXPECT_EQ(
|
|
303
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
TEST(StackTraceParser, javaScriptCore) {
|
|
308
|
+
auto actualStackFrames =
|
|
309
|
+
StackTraceParser::parse(false, CapturedExceptions["IOS_REACT_NATIVE_1"]);
|
|
310
|
+
EXPECT_EQ(actualStackFrames.size(), 4);
|
|
311
|
+
|
|
312
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
313
|
+
{"/home/test/project/App.js", "_exampleFunction", 125, 12},
|
|
314
|
+
{"/home/test/project/node_modules/dep/index.js",
|
|
315
|
+
"_depRunCallbacks",
|
|
316
|
+
77,
|
|
317
|
+
44},
|
|
318
|
+
{"/home/test/project/node_modules/react-native/node_modules/promise/lib/core.js",
|
|
319
|
+
"tryCallTwo",
|
|
320
|
+
45,
|
|
321
|
+
4},
|
|
322
|
+
{"/home/test/project/node_modules/react-native/node_modules/promise/lib/core.js",
|
|
323
|
+
"doResolve",
|
|
324
|
+
200,
|
|
325
|
+
12}};
|
|
326
|
+
|
|
327
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
328
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
329
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
330
|
+
EXPECT_EQ(
|
|
331
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
332
|
+
EXPECT_EQ(
|
|
333
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
TEST(StackTraceParser, errorInReactNative) {
|
|
338
|
+
auto actualStackFrames =
|
|
339
|
+
StackTraceParser::parse(false, CapturedExceptions["IOS_REACT_NATIVE_2"]);
|
|
340
|
+
EXPECT_EQ(actualStackFrames.size(), 11);
|
|
341
|
+
|
|
342
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
343
|
+
{"33.js", "s", 1, 530},
|
|
344
|
+
{"1959.js", "b", 1, 1468},
|
|
345
|
+
{"2932.js", "onSocketClose", 1, 726},
|
|
346
|
+
{"81.js", "value", 1, 1504},
|
|
347
|
+
{"102.js", "<unknown>", 1, 2955},
|
|
348
|
+
{"89.js", "value", 1, 1246},
|
|
349
|
+
{"42.js", "value", 1, 3310},
|
|
350
|
+
{"42.js", "<unknown>", 1, 821},
|
|
351
|
+
{"42.js", "value", 1, 2564},
|
|
352
|
+
{"42.js", "value", 1, 793},
|
|
353
|
+
{"[native code]", "value", std::nullopt, std::nullopt}};
|
|
354
|
+
|
|
355
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
356
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
357
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
358
|
+
EXPECT_EQ(
|
|
359
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
360
|
+
EXPECT_EQ(
|
|
361
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
TEST(StackTraceParser, simpleJavaScriptCoreErrors) {
|
|
366
|
+
auto actualStackFrames =
|
|
367
|
+
StackTraceParser::parse(false, "global code@stack_traces/test:83:55");
|
|
368
|
+
EXPECT_EQ(actualStackFrames.size(), 1);
|
|
369
|
+
|
|
370
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
371
|
+
{"stack_traces/test", "global code", 83, 54}};
|
|
372
|
+
|
|
373
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
374
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
375
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
376
|
+
EXPECT_EQ(
|
|
377
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
378
|
+
EXPECT_EQ(
|
|
379
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
TEST(StackTraceParser, safari6Error) {
|
|
384
|
+
auto actualStackFrames =
|
|
385
|
+
StackTraceParser::parse(false, CapturedExceptions["SAFARI_6"]);
|
|
386
|
+
EXPECT_EQ(actualStackFrames.size(), 4);
|
|
387
|
+
|
|
388
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
389
|
+
{"http://path/to/file.js", "<unknown>", 48, std::nullopt},
|
|
390
|
+
{"http://path/to/file.js", "dumpException3", 52, std::nullopt},
|
|
391
|
+
{"http://path/to/file.js", "onclick", 82, std::nullopt},
|
|
392
|
+
{"[native code]", "<unknown>", std::nullopt, std::nullopt}};
|
|
393
|
+
|
|
394
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
395
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
396
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
397
|
+
EXPECT_EQ(
|
|
398
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
399
|
+
EXPECT_EQ(
|
|
400
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
TEST(StackTraceParser, safari7Error) {
|
|
405
|
+
auto actualStackFrames =
|
|
406
|
+
StackTraceParser::parse(false, CapturedExceptions["SAFARI_7"]);
|
|
407
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
408
|
+
|
|
409
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
410
|
+
{"http://path/to/file.js", "<unknown>", 48, 21},
|
|
411
|
+
{"http://path/to/file.js", "foo", 52, 14},
|
|
412
|
+
{"http://path/to/file.js", "bar", 108, 106}};
|
|
413
|
+
|
|
414
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
415
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
416
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
417
|
+
EXPECT_EQ(
|
|
418
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
419
|
+
EXPECT_EQ(
|
|
420
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
TEST(StackTraceParser, safari8Error) {
|
|
425
|
+
auto actualStackFrames =
|
|
426
|
+
StackTraceParser::parse(false, CapturedExceptions["SAFARI_8"]);
|
|
427
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
428
|
+
|
|
429
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
430
|
+
{"http://path/to/file.js", "<unknown>", 47, 21},
|
|
431
|
+
{"http://path/to/file.js", "foo", 52, 14},
|
|
432
|
+
{"http://path/to/file.js", "bar", 108, 22}};
|
|
433
|
+
|
|
434
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
435
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
436
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
437
|
+
EXPECT_EQ(
|
|
438
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
439
|
+
EXPECT_EQ(
|
|
440
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
TEST(StackTraceParser, safari8EvalError) {
|
|
445
|
+
auto actualStackFrames =
|
|
446
|
+
StackTraceParser::parse(false, CapturedExceptions["SAFARI_8_EVAL"]);
|
|
447
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
448
|
+
|
|
449
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
450
|
+
{"[native code]", "eval", std::nullopt, std::nullopt},
|
|
451
|
+
{"http://path/to/file.js", "foo", 58, 20},
|
|
452
|
+
{"http://path/to/file.js", "bar", 109, 90}};
|
|
453
|
+
|
|
454
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
455
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
456
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
457
|
+
EXPECT_EQ(
|
|
458
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
459
|
+
EXPECT_EQ(
|
|
460
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
TEST(StackTraceParser, firefox3Error) {
|
|
465
|
+
auto actualStackFrames =
|
|
466
|
+
StackTraceParser::parse(false, CapturedExceptions["FIREFOX_3"]);
|
|
467
|
+
EXPECT_EQ(actualStackFrames.size(), 7);
|
|
468
|
+
|
|
469
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
470
|
+
{"http://127.0.0.1:8000/js/stacktrace.js", "<unknown>", 44, std::nullopt},
|
|
471
|
+
{"http://127.0.0.1:8000/js/stacktrace.js", "<unknown>", 31, std::nullopt},
|
|
472
|
+
{"http://127.0.0.1:8000/js/stacktrace.js",
|
|
473
|
+
"printStackTrace",
|
|
474
|
+
18,
|
|
475
|
+
std::nullopt},
|
|
476
|
+
{"http://127.0.0.1:8000/js/file.js", "bar", 13, std::nullopt},
|
|
477
|
+
{"http://127.0.0.1:8000/js/file.js", "bar", 16, std::nullopt},
|
|
478
|
+
{"http://127.0.0.1:8000/js/file.js", "foo", 20, std::nullopt},
|
|
479
|
+
{"http://127.0.0.1:8000/js/file.js", "<unknown>", 24, std::nullopt}};
|
|
480
|
+
|
|
481
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
482
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
483
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
484
|
+
EXPECT_EQ(
|
|
485
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
486
|
+
EXPECT_EQ(
|
|
487
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
TEST(StackTraceParser, firefox7Error) {
|
|
492
|
+
auto actualStackFrames =
|
|
493
|
+
StackTraceParser::parse(false, CapturedExceptions["FIREFOX_7"]);
|
|
494
|
+
EXPECT_EQ(actualStackFrames.size(), 7);
|
|
495
|
+
|
|
496
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
497
|
+
{"file:///G:/js/stacktrace.js", "<unknown>", 44, std::nullopt},
|
|
498
|
+
{"file:///G:/js/stacktrace.js", "<unknown>", 31, std::nullopt},
|
|
499
|
+
{"file:///G:/js/stacktrace.js", "printStackTrace", 18, std::nullopt},
|
|
500
|
+
{"file:///G:/js/file.js", "bar", 13, std::nullopt},
|
|
501
|
+
{"file:///G:/js/file.js", "bar", 16, std::nullopt},
|
|
502
|
+
{"file:///G:/js/file.js", "foo", 20, std::nullopt},
|
|
503
|
+
{"file:///G:/js/file.js", "<unknown>", 24, std::nullopt}};
|
|
504
|
+
|
|
505
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
506
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
507
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
508
|
+
EXPECT_EQ(
|
|
509
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
510
|
+
EXPECT_EQ(
|
|
511
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
TEST(StackTraceParser, firefox14Error) {
|
|
516
|
+
auto actualStackFrames =
|
|
517
|
+
StackTraceParser::parse(false, CapturedExceptions["FIREFOX_14"]);
|
|
518
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
519
|
+
|
|
520
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
521
|
+
{"http://path/to/file.js", "<unknown>", 48, std::nullopt},
|
|
522
|
+
{"http://path/to/file.js", "dumpException3", 52, std::nullopt},
|
|
523
|
+
{"http://path/to/file.js", "onclick", 1, std::nullopt}};
|
|
524
|
+
|
|
525
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
526
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
527
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
528
|
+
EXPECT_EQ(
|
|
529
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
530
|
+
EXPECT_EQ(
|
|
531
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
TEST(StackTraceParser, firefox31Error) {
|
|
536
|
+
auto actualStackFrames =
|
|
537
|
+
StackTraceParser::parse(false, CapturedExceptions["FIREFOX_31"]);
|
|
538
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
539
|
+
|
|
540
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
541
|
+
{"http://path/to/file.js", "foo", 41, 12},
|
|
542
|
+
{"http://path/to/file.js", "bar", 1, 0},
|
|
543
|
+
{"http://path/to/file.js", ".plugin/e.fn[c]/<", 1, 0}};
|
|
544
|
+
|
|
545
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
546
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
547
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
548
|
+
EXPECT_EQ(
|
|
549
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
550
|
+
EXPECT_EQ(
|
|
551
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
TEST(StackTraceParser, firefox44) {
|
|
556
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
557
|
+
false, CapturedExceptions["FIREFOX_44_NS_EXCEPTION"]);
|
|
558
|
+
EXPECT_EQ(actualStackFrames.size(), 4);
|
|
559
|
+
|
|
560
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
561
|
+
{"http://path/to/file.js", "[2]</Bar.prototype._baz/</<", 703, 27},
|
|
562
|
+
{"file:///path/to/file.js", "App.prototype.foo", 15, 1},
|
|
563
|
+
{"file:///path/to/file.js", "bar", 20, 2},
|
|
564
|
+
{"file:///path/to/index.html", "<unknown>", 23, 0}};
|
|
565
|
+
|
|
566
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
567
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
568
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
569
|
+
EXPECT_EQ(
|
|
570
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
571
|
+
EXPECT_EQ(
|
|
572
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
TEST(StackTraceParser, chromeErrorWithNoLocation) {
|
|
577
|
+
auto actualStackFrames =
|
|
578
|
+
StackTraceParser::parse(false, "error\n at Array.forEach (native)");
|
|
579
|
+
EXPECT_EQ(actualStackFrames.size(), 1);
|
|
580
|
+
|
|
581
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
582
|
+
{std::nullopt, "Array.forEach", std::nullopt, std::nullopt}};
|
|
583
|
+
|
|
584
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
585
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
586
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
587
|
+
EXPECT_EQ(
|
|
588
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
589
|
+
EXPECT_EQ(
|
|
590
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
TEST(StackTraceParser, chrome15Error) {
|
|
595
|
+
auto actualStackFrames =
|
|
596
|
+
StackTraceParser::parse(false, CapturedExceptions["CHROME_15"]);
|
|
597
|
+
EXPECT_EQ(actualStackFrames.size(), 4);
|
|
598
|
+
|
|
599
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
600
|
+
{"http://path/to/file.js", "bar", 13, 16},
|
|
601
|
+
{"http://path/to/file.js", "bar", 16, 4},
|
|
602
|
+
{"http://path/to/file.js", "foo", 20, 4},
|
|
603
|
+
{"http://path/to/file.js", "<unknown>", 24, 3}};
|
|
604
|
+
|
|
605
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
606
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
607
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
608
|
+
EXPECT_EQ(
|
|
609
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
610
|
+
EXPECT_EQ(
|
|
611
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
TEST(StackTraceParser, chrome36Error) {
|
|
616
|
+
auto actualStackFrames =
|
|
617
|
+
StackTraceParser::parse(false, CapturedExceptions["CHROME_36"]);
|
|
618
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
619
|
+
|
|
620
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
621
|
+
{"http://localhost:8080/file.js", "dumpExceptionError", 41, 26},
|
|
622
|
+
{"http://localhost:8080/file.js", "HTMLButtonElement.onclick", 107, 145},
|
|
623
|
+
{"http://localhost:8080/file.js",
|
|
624
|
+
"I.e.fn.(anonymous function) [as index]",
|
|
625
|
+
10,
|
|
626
|
+
3650}};
|
|
627
|
+
|
|
628
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
629
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
630
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
631
|
+
EXPECT_EQ(
|
|
632
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
633
|
+
EXPECT_EQ(
|
|
634
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
TEST(StackTraceParser, chrome76Error) {
|
|
639
|
+
auto actualStackFrames =
|
|
640
|
+
StackTraceParser::parse(false, CapturedExceptions["CHROME_76"]);
|
|
641
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
642
|
+
|
|
643
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
644
|
+
{"<anonymous>", "bar", 8, 8}, {"<anonymous>", "async foo", 2, 2}};
|
|
645
|
+
|
|
646
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
647
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
648
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
649
|
+
EXPECT_EQ(
|
|
650
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
651
|
+
EXPECT_EQ(
|
|
652
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
TEST(StackTraceParser, chromeErrorWithWebpackURLS) {
|
|
657
|
+
auto actualStackFrames =
|
|
658
|
+
StackTraceParser::parse(false, CapturedExceptions["CHROME_XX_WEBPACK"]);
|
|
659
|
+
EXPECT_EQ(actualStackFrames.size(), 5);
|
|
660
|
+
|
|
661
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
662
|
+
{"webpack:///./src/components/test/test.jsx?",
|
|
663
|
+
"TESTTESTTEST.eval",
|
|
664
|
+
295,
|
|
665
|
+
107},
|
|
666
|
+
{"webpack:///./src/components/test/test.jsx?",
|
|
667
|
+
"TESTTESTTEST.render",
|
|
668
|
+
272,
|
|
669
|
+
31},
|
|
670
|
+
{"webpack:///./~/react-transform-catch-errors/lib/index.js?",
|
|
671
|
+
"TESTTESTTEST.tryRender",
|
|
672
|
+
34,
|
|
673
|
+
30},
|
|
674
|
+
{"webpack:///./~/react-proxy/modules/createPrototypeProxy.js?",
|
|
675
|
+
"TESTTESTTEST.proxiedMethod",
|
|
676
|
+
44,
|
|
677
|
+
29},
|
|
678
|
+
{R"(C:\root\server\development\pages\index.js)",
|
|
679
|
+
"Module../pages/index.js",
|
|
680
|
+
182,
|
|
681
|
+
6}};
|
|
682
|
+
|
|
683
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
684
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
685
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
686
|
+
EXPECT_EQ(
|
|
687
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
688
|
+
EXPECT_EQ(
|
|
689
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
TEST(StackTraceParser, nestedEvalsFromChrome) {
|
|
694
|
+
auto actualStackFrames =
|
|
695
|
+
StackTraceParser::parse(false, CapturedExceptions["CHROME_48_EVAL"]);
|
|
696
|
+
EXPECT_EQ(actualStackFrames.size(), 5);
|
|
697
|
+
|
|
698
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
699
|
+
{"http://localhost:8080/file.js", "baz", 21, 16},
|
|
700
|
+
{"http://localhost:8080/file.js", "foo", 21, 16},
|
|
701
|
+
{"http://localhost:8080/file.js", "eval", 21, 16},
|
|
702
|
+
{"http://localhost:8080/file.js", "Object.speak", 21, 16},
|
|
703
|
+
{"http://localhost:8080/file.js", "<unknown>", 31, 12}};
|
|
704
|
+
|
|
705
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
706
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
707
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
708
|
+
EXPECT_EQ(
|
|
709
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
710
|
+
EXPECT_EQ(
|
|
711
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
TEST(StackTraceParser, chromeErrorWithBlobURLs) {
|
|
716
|
+
auto actualStackFrames =
|
|
717
|
+
StackTraceParser::parse(false, CapturedExceptions["CHROME_48_BLOB"]);
|
|
718
|
+
EXPECT_EQ(actualStackFrames.size(), 7);
|
|
719
|
+
|
|
720
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
721
|
+
{std::nullopt, "Error", std::nullopt, std::nullopt},
|
|
722
|
+
{"blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379",
|
|
723
|
+
"s",
|
|
724
|
+
31,
|
|
725
|
+
29145},
|
|
726
|
+
{"blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379",
|
|
727
|
+
"Object.d [as add]",
|
|
728
|
+
31,
|
|
729
|
+
30038},
|
|
730
|
+
{"blob:http%3A//localhost%3A8080/d4eefe0f-361a-4682-b217-76587d9f712a",
|
|
731
|
+
"<unknown>",
|
|
732
|
+
15,
|
|
733
|
+
10977},
|
|
734
|
+
{"blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379",
|
|
735
|
+
"<unknown>",
|
|
736
|
+
1,
|
|
737
|
+
6910},
|
|
738
|
+
{"blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379",
|
|
739
|
+
"n.fire",
|
|
740
|
+
7,
|
|
741
|
+
3018},
|
|
742
|
+
{"blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379",
|
|
743
|
+
"n.handle",
|
|
744
|
+
7,
|
|
745
|
+
2862}};
|
|
746
|
+
|
|
747
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
748
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
749
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
750
|
+
EXPECT_EQ(
|
|
751
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
752
|
+
EXPECT_EQ(
|
|
753
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
TEST(StackTraceParser, ie10Error) {
|
|
758
|
+
auto actualStackFrames =
|
|
759
|
+
StackTraceParser::parse(false, CapturedExceptions["IE_10"]);
|
|
760
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
761
|
+
|
|
762
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
763
|
+
{"http://path/to/file.js", "Anonymous function", 48, 12},
|
|
764
|
+
{"http://path/to/file.js", "foo", 46, 8},
|
|
765
|
+
{"http://path/to/file.js", "bar", 82, 0}};
|
|
766
|
+
|
|
767
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
768
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
769
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
770
|
+
EXPECT_EQ(
|
|
771
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
772
|
+
EXPECT_EQ(
|
|
773
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
TEST(StackTraceParser, ie11Error) {
|
|
778
|
+
auto actualStackFrames =
|
|
779
|
+
StackTraceParser::parse(false, CapturedExceptions["IE_11"]);
|
|
780
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
781
|
+
|
|
782
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
783
|
+
{"http://path/to/file.js", "Anonymous function", 47, 20},
|
|
784
|
+
{"http://path/to/file.js", "foo", 45, 12},
|
|
785
|
+
{"http://path/to/file.js", "bar", 108, 0}};
|
|
786
|
+
|
|
787
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
788
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
789
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
790
|
+
EXPECT_EQ(
|
|
791
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
792
|
+
EXPECT_EQ(
|
|
793
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
TEST(StackTraceParser, ie11EvalError) {
|
|
798
|
+
auto actualStackFrames =
|
|
799
|
+
StackTraceParser::parse(false, CapturedExceptions["IE_11_EVAL"]);
|
|
800
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
801
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
802
|
+
{"eval code", "eval code", 1, 0},
|
|
803
|
+
{"http://path/to/file.js", "foo", 58, 16},
|
|
804
|
+
{"http://path/to/file.js", "bar", 109, 0}};
|
|
805
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
806
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
807
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
808
|
+
EXPECT_EQ(
|
|
809
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
810
|
+
EXPECT_EQ(
|
|
811
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
TEST(StackTraceParser, Opera25Error) {
|
|
816
|
+
auto actualStackFrames =
|
|
817
|
+
StackTraceParser::parse(false, CapturedExceptions["OPERA_25"]);
|
|
818
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
819
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
820
|
+
{"http://path/to/file.js", "<unknown>", 47, 21},
|
|
821
|
+
{"http://path/to/file.js", "foo", 52, 14},
|
|
822
|
+
{"http://path/to/file.js", "bar", 108, 167}};
|
|
823
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
824
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
825
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
826
|
+
EXPECT_EQ(
|
|
827
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
828
|
+
EXPECT_EQ(
|
|
829
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
TEST(StackTraceParser, PhantomJS119Error) {
|
|
834
|
+
auto actualStackFrames =
|
|
835
|
+
StackTraceParser::parse(false, CapturedExceptions["PHANTOMJS_1_19"]);
|
|
836
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
837
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
838
|
+
{"file:///path/to/file.js", "<unknown>", 878, std::nullopt},
|
|
839
|
+
{"http://path/to/file.js", "foo", 4283, std::nullopt},
|
|
840
|
+
{"http://path/to/file.js", "<unknown>", 4287, std::nullopt}};
|
|
841
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
842
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
843
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
844
|
+
EXPECT_EQ(
|
|
845
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
846
|
+
EXPECT_EQ(
|
|
847
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
TEST(StackTraceParser, FirefoxResourceUrlError) {
|
|
852
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
853
|
+
false, CapturedExceptions["FIREFOX_50_RESOURCE_URL"]);
|
|
854
|
+
EXPECT_EQ(actualStackFrames.size(), 3);
|
|
855
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
856
|
+
{"resource://path/data/content/bundle.js", "render", 5529, 15}};
|
|
857
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
858
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
859
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
860
|
+
EXPECT_EQ(
|
|
861
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
862
|
+
EXPECT_EQ(
|
|
863
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
TEST(StackTraceParser, FirefoxEvalUrlError) {
|
|
868
|
+
auto actualStackFrames =
|
|
869
|
+
StackTraceParser::parse(false, CapturedExceptions["FIREFOX_43_EVAL"]);
|
|
870
|
+
EXPECT_EQ(actualStackFrames.size(), 5);
|
|
871
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
872
|
+
{"http://localhost:8080/file.js", "baz", 26, std::nullopt},
|
|
873
|
+
{"http://localhost:8080/file.js", "foo", 26, std::nullopt},
|
|
874
|
+
{"http://localhost:8080/file.js", "<unknown>", 26, std::nullopt},
|
|
875
|
+
{"http://localhost:8080/file.js", "speak", 26, 16},
|
|
876
|
+
{"http://localhost:8080/file.js", "<unknown>", 33, 8}};
|
|
877
|
+
for (auto i = 0; i < expectedStackFrames.size(); i++) {
|
|
878
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
879
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
880
|
+
EXPECT_EQ(
|
|
881
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
882
|
+
EXPECT_EQ(
|
|
883
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
TEST(StackTraceParser, ReactNativeAndroidError) {
|
|
888
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
889
|
+
false, CapturedExceptions["ANDROID_REACT_NATIVE"]);
|
|
890
|
+
EXPECT_EQ(actualStackFrames.size(), 8);
|
|
891
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
892
|
+
{"/home/username/sample-workspace/sampleapp.collect.react/src/components/GpsMonitorScene.js",
|
|
893
|
+
"render",
|
|
894
|
+
78,
|
|
895
|
+
23},
|
|
896
|
+
{"/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/native/ReactNativeBaseComponent.js",
|
|
897
|
+
"this",
|
|
898
|
+
74,
|
|
899
|
+
40}};
|
|
900
|
+
|
|
901
|
+
EXPECT_EQ(actualStackFrames[0].column, expectedStackFrames[0].column);
|
|
902
|
+
EXPECT_EQ(actualStackFrames[0].file, expectedStackFrames[0].file);
|
|
903
|
+
EXPECT_EQ(actualStackFrames[0].lineNumber, expectedStackFrames[0].lineNumber);
|
|
904
|
+
EXPECT_EQ(actualStackFrames[0].methodName, expectedStackFrames[0].methodName);
|
|
905
|
+
|
|
906
|
+
EXPECT_EQ(actualStackFrames[7].column, expectedStackFrames[1].column);
|
|
907
|
+
EXPECT_EQ(actualStackFrames[7].file, expectedStackFrames[1].file);
|
|
908
|
+
EXPECT_EQ(actualStackFrames[7].lineNumber, expectedStackFrames[1].lineNumber);
|
|
909
|
+
EXPECT_EQ(actualStackFrames[7].methodName, expectedStackFrames[1].methodName);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
TEST(StackTraceParser, ReactNativeAndroidProdError) {
|
|
913
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
914
|
+
false, CapturedExceptions["ANDROID_REACT_NATIVE_PROD"]);
|
|
915
|
+
EXPECT_EQ(actualStackFrames.size(), 37);
|
|
916
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
917
|
+
{"index.android.bundle", "value", 12, 1916},
|
|
918
|
+
{"index.android.bundle", "value", 29, 926},
|
|
919
|
+
{"[native code]", "<unknown>", std::nullopt, std::nullopt}};
|
|
920
|
+
EXPECT_EQ(actualStackFrames[0].column, expectedStackFrames[0].column);
|
|
921
|
+
EXPECT_EQ(actualStackFrames[0].file, expectedStackFrames[0].file);
|
|
922
|
+
EXPECT_EQ(actualStackFrames[0].lineNumber, expectedStackFrames[0].lineNumber);
|
|
923
|
+
EXPECT_EQ(actualStackFrames[0].methodName, expectedStackFrames[0].methodName);
|
|
924
|
+
|
|
925
|
+
EXPECT_EQ(actualStackFrames[35].column, expectedStackFrames[1].column);
|
|
926
|
+
EXPECT_EQ(actualStackFrames[35].file, expectedStackFrames[1].file);
|
|
927
|
+
EXPECT_EQ(
|
|
928
|
+
actualStackFrames[35].lineNumber, expectedStackFrames[1].lineNumber);
|
|
929
|
+
EXPECT_EQ(
|
|
930
|
+
actualStackFrames[35].methodName, expectedStackFrames[1].methodName);
|
|
931
|
+
|
|
932
|
+
EXPECT_EQ(actualStackFrames[36].column, expectedStackFrames[2].column);
|
|
933
|
+
EXPECT_EQ(actualStackFrames[36].file, expectedStackFrames[2].file);
|
|
934
|
+
EXPECT_EQ(
|
|
935
|
+
actualStackFrames[36].lineNumber, expectedStackFrames[2].lineNumber);
|
|
936
|
+
EXPECT_EQ(
|
|
937
|
+
actualStackFrames[36].methodName, expectedStackFrames[2].methodName);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
TEST(StackTraceParser, NodeJsAsyncErrorsVersion12) {
|
|
941
|
+
auto actualStackFrames =
|
|
942
|
+
StackTraceParser::parse(false, CapturedExceptions["NODE_12"]);
|
|
943
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
944
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
945
|
+
{"/home/xyz/hack/asyncnode.js", "promiseMe", 11, 8},
|
|
946
|
+
{"/home/xyz/hack/asyncnode.js", "async main", 15, 12}};
|
|
947
|
+
|
|
948
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
949
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
950
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
951
|
+
EXPECT_EQ(
|
|
952
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
953
|
+
EXPECT_EQ(
|
|
954
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
TEST(StackTraceParser, NodeJsErrorsWithAnonymousCalls) {
|
|
959
|
+
auto actualStackFrames =
|
|
960
|
+
StackTraceParser::parse(false, CapturedExceptions["NODE_ANONYM"]);
|
|
961
|
+
EXPECT_EQ(actualStackFrames.size(), 9);
|
|
962
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
963
|
+
{R"(C:\projects\spect\src\index.js)", "Spect.get", 161, 25},
|
|
964
|
+
{R"(C:\projects\spect\src\index.js)",
|
|
965
|
+
"(anonymous function).then",
|
|
966
|
+
165,
|
|
967
|
+
32},
|
|
968
|
+
{R"(C:\projects\spect\node_modules\esm\esm.js)", "<unknown>", 1, 34534},
|
|
969
|
+
{R"(C:\projects\spect\node_modules\esm\esm.js)",
|
|
970
|
+
"process.<anonymous>",
|
|
971
|
+
1,
|
|
972
|
+
34505}};
|
|
973
|
+
// Check specific stack frames as per the JavaScript test
|
|
974
|
+
EXPECT_EQ(actualStackFrames[0].column, expectedStackFrames[0].column);
|
|
975
|
+
EXPECT_EQ(actualStackFrames[0].file, expectedStackFrames[0].file);
|
|
976
|
+
EXPECT_EQ(actualStackFrames[0].lineNumber, expectedStackFrames[0].lineNumber);
|
|
977
|
+
EXPECT_EQ(actualStackFrames[0].methodName, expectedStackFrames[0].methodName);
|
|
978
|
+
|
|
979
|
+
EXPECT_EQ(actualStackFrames[2].column, expectedStackFrames[1].column);
|
|
980
|
+
EXPECT_EQ(actualStackFrames[2].file, expectedStackFrames[1].file);
|
|
981
|
+
EXPECT_EQ(actualStackFrames[2].lineNumber, expectedStackFrames[1].lineNumber);
|
|
982
|
+
EXPECT_EQ(actualStackFrames[2].methodName, expectedStackFrames[1].methodName);
|
|
983
|
+
|
|
984
|
+
EXPECT_EQ(actualStackFrames[4].column, expectedStackFrames[2].column);
|
|
985
|
+
EXPECT_EQ(actualStackFrames[4].file, expectedStackFrames[2].file);
|
|
986
|
+
EXPECT_EQ(actualStackFrames[4].lineNumber, expectedStackFrames[2].lineNumber);
|
|
987
|
+
EXPECT_EQ(actualStackFrames[4].methodName, expectedStackFrames[2].methodName);
|
|
988
|
+
|
|
989
|
+
EXPECT_EQ(actualStackFrames[6].column, expectedStackFrames[3].column);
|
|
990
|
+
EXPECT_EQ(actualStackFrames[6].file, expectedStackFrames[3].file);
|
|
991
|
+
EXPECT_EQ(actualStackFrames[6].lineNumber, expectedStackFrames[3].lineNumber);
|
|
992
|
+
EXPECT_EQ(actualStackFrames[6].methodName, expectedStackFrames[3].methodName);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
TEST(StackTraceParser, AnonymousSources) {
|
|
996
|
+
auto actualStackFrames =
|
|
997
|
+
StackTraceParser::parse(false, CapturedExceptions["ANONYMOUS_SOURCES"]);
|
|
998
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
999
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1000
|
+
{"http://www.example.com/test.js", "new <anonymous>", 2, 0},
|
|
1001
|
+
{"<anonymous>", "<unknown>", 1, 1}};
|
|
1002
|
+
|
|
1003
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1004
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1005
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1006
|
+
EXPECT_EQ(
|
|
1007
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1008
|
+
EXPECT_EQ(
|
|
1009
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
TEST(StackTraceParser, NodeJsTest1) {
|
|
1014
|
+
auto actualStackFrames =
|
|
1015
|
+
StackTraceParser::parse(false, CapturedExceptions["NODE_JS_TEST_1"]);
|
|
1016
|
+
EXPECT_EQ(actualStackFrames.size(), 5);
|
|
1017
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1018
|
+
{"repl", "<unknown>", 1, 1},
|
|
1019
|
+
{"repl.js", "REPLServer.self.eval", 110, 20},
|
|
1020
|
+
{"repl.js", "Interface.<anonymous>", 239, 11},
|
|
1021
|
+
{"events.js", "Interface.EventEmitter.emit", 95, 16},
|
|
1022
|
+
{"readline.js", "emitKey", 1095, 11}};
|
|
1023
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1024
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1025
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1026
|
+
EXPECT_EQ(
|
|
1027
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1028
|
+
EXPECT_EQ(
|
|
1029
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
TEST(StackTraceParser, NodeJsTest2) {
|
|
1034
|
+
auto actualStackFrames =
|
|
1035
|
+
StackTraceParser::parse(false, CapturedExceptions["NODE_JS_TEST_2"]);
|
|
1036
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
1037
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1038
|
+
{"repl", "null._onTimeout", 1, 24},
|
|
1039
|
+
{"timers.js", "Timer.listOnTimeout [as ontimeout]", 110, 14}};
|
|
1040
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1041
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1042
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1043
|
+
EXPECT_EQ(
|
|
1044
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1045
|
+
EXPECT_EQ(
|
|
1046
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
TEST(StackTraceParser, IoJs) {
|
|
1051
|
+
auto actualStackFrames =
|
|
1052
|
+
StackTraceParser::parse(false, CapturedExceptions["IO_JS"]);
|
|
1053
|
+
EXPECT_EQ(actualStackFrames.size(), 10);
|
|
1054
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1055
|
+
{"repl", "<unknown>", 1, 0},
|
|
1056
|
+
{"repl.js", "REPLServer.defaultEval", 154, 26},
|
|
1057
|
+
{"domain.js", "bound", 254, 13},
|
|
1058
|
+
{"domain.js", "REPLServer.runBound [as eval]", 267, 11},
|
|
1059
|
+
{"repl.js", "REPLServer.<anonymous>", 308, 11},
|
|
1060
|
+
{"events.js", "emitOne", 77, 12},
|
|
1061
|
+
{"events.js", "REPLServer.emit", 169, 6},
|
|
1062
|
+
{"readline.js", "REPLServer.Interface._onLine", 210, 9},
|
|
1063
|
+
{"readline.js", "REPLServer.Interface._line", 549, 7},
|
|
1064
|
+
{"readline.js", "REPLServer.Interface._ttyWrite", 826, 13}};
|
|
1065
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1066
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1067
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1068
|
+
EXPECT_EQ(
|
|
1069
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1070
|
+
EXPECT_EQ(
|
|
1071
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Hermes tests
|
|
1077
|
+
*/
|
|
1078
|
+
TEST(StackTraceParser, hermesBytecodeLocation) {
|
|
1079
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
1080
|
+
true,
|
|
1081
|
+
"TypeError: undefined is not a function\n"
|
|
1082
|
+
" at global (address at unknown:1:9)\n"
|
|
1083
|
+
" at foo$bar (address at /js/foo.hbc:10:1234)");
|
|
1084
|
+
|
|
1085
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
1086
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1087
|
+
{"unknown", "global", 1, 9}, {"/js/foo.hbc", "foo$bar", 10, 1234}};
|
|
1088
|
+
|
|
1089
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1090
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1091
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1092
|
+
EXPECT_EQ(
|
|
1093
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1094
|
+
EXPECT_EQ(
|
|
1095
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
TEST(StackTraceParser, internalBytecodeLocation) {
|
|
1100
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
1101
|
+
true,
|
|
1102
|
+
"TypeError: undefined is not a function\n"
|
|
1103
|
+
" at internal (address at InternalBytecode.js:1:9)\n"
|
|
1104
|
+
" at notInternal (address at /js/InternalBytecode.js:10:1234)");
|
|
1105
|
+
EXPECT_EQ(actualStackFrames.size(), 1);
|
|
1106
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1107
|
+
{"/js/InternalBytecode.js", "notInternal", 10, 1234}};
|
|
1108
|
+
|
|
1109
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1110
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1111
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1112
|
+
EXPECT_EQ(
|
|
1113
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1114
|
+
EXPECT_EQ(
|
|
1115
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
TEST(StackTraceParser, sourceLocation) {
|
|
1120
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
1121
|
+
true,
|
|
1122
|
+
"TypeError: undefined is not a function\n"
|
|
1123
|
+
" at global (unknown:1:9)\n"
|
|
1124
|
+
" at foo$bar (/js/foo.js:10:1234)");
|
|
1125
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
1126
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1127
|
+
{"unknown", "global", 1, 8}, {"/js/foo.js", "foo$bar", 10, 1233}};
|
|
1128
|
+
|
|
1129
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1130
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1131
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1132
|
+
EXPECT_EQ(
|
|
1133
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1134
|
+
EXPECT_EQ(
|
|
1135
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
TEST(StackTraceParser, tolerateEmptyFilename) {
|
|
1140
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
1141
|
+
true,
|
|
1142
|
+
"TypeError: undefined is not a function\n"
|
|
1143
|
+
" at global (unknown:1:9)\n"
|
|
1144
|
+
" at foo$bar (:10:1234)");
|
|
1145
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
1146
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1147
|
+
{"unknown", "global", 1, 8}, {"", "foo$bar", 10, 1233}};
|
|
1148
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1149
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1150
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1151
|
+
EXPECT_EQ(
|
|
1152
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1153
|
+
EXPECT_EQ(
|
|
1154
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
TEST(StackTraceParser, skippedFrames) {
|
|
1159
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
1160
|
+
true,
|
|
1161
|
+
"TypeError: undefined is not a function\n"
|
|
1162
|
+
" at global (unknown:1:9)\n"
|
|
1163
|
+
" ... skipping 50 frames\n"
|
|
1164
|
+
" at foo$bar (/js/foo.js:10:1234)");
|
|
1165
|
+
EXPECT_EQ(actualStackFrames.size(), 2);
|
|
1166
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1167
|
+
{"unknown", "global", 1, 8}, {"/js/foo.js", "foo$bar", 10, 1233}};
|
|
1168
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1169
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1170
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1171
|
+
EXPECT_EQ(
|
|
1172
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1173
|
+
EXPECT_EQ(
|
|
1174
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
TEST(StackTraceParser, handleNonStandardLines) {
|
|
1179
|
+
auto actualStackFrames = StackTraceParser::parse(
|
|
1180
|
+
true,
|
|
1181
|
+
"The next line is not a stack frame\n"
|
|
1182
|
+
" at bogus (filename:1:2)\n"
|
|
1183
|
+
" but the real stack trace follows below.\n"
|
|
1184
|
+
" at foo$bar (/js/foo.js:10:1234)");
|
|
1185
|
+
EXPECT_EQ(actualStackFrames.size(), 1);
|
|
1186
|
+
std::vector<JsErrorHandler::ParsedError::StackFrame> expectedStackFrames = {
|
|
1187
|
+
{"/js/foo.js", "foo$bar", 10, 1233}};
|
|
1188
|
+
for (size_t i = 0; i < expectedStackFrames.size(); i++) {
|
|
1189
|
+
EXPECT_EQ(actualStackFrames[i].column, expectedStackFrames[i].column);
|
|
1190
|
+
EXPECT_EQ(actualStackFrames[i].file, expectedStackFrames[i].file);
|
|
1191
|
+
EXPECT_EQ(
|
|
1192
|
+
actualStackFrames[i].lineNumber, expectedStackFrames[i].lineNumber);
|
|
1193
|
+
EXPECT_EQ(
|
|
1194
|
+
actualStackFrames[i].methodName, expectedStackFrames[i].methodName);
|
|
1195
|
+
}
|
|
1196
|
+
}
|