mirror of
https://github.com/react/react-native.git
synced 2026-10-15 19:35:15 +08:00
Summary: This PR is part of https://github.com/facebook/react-native/issues/34872 This PR extracts `IncorrectModuleRegistryCallArityParserError` exception to `throwIfIncorrectModuleRegistryCallArityParserError` inside an `error-utils.js` file. ## Changelog [Internal] [Changed] - Extracted IncorrectModuleRegistryCallArityParserError exception to throwIfIncorrectModuleRegistryCallArityParserError function Pull Request resolved: https://github.com/facebook/react-native/pull/34940 Test Plan: Added unit case in error-utils-test.js file yarn jest react-native-codegen <img width="1144" alt="Screenshot 2022-10-11 at 4 04 55 PM" src="https://user-images.githubusercontent.com/22423684/195070498-627d1bb8-53b1-43d3-b410-462e4f0da23a.png"> Reviewed By: dmytrorykun Differential Revision: D40296626 Pulled By: cipolleschi fbshipit-source-id: 33a299b1adf6334753c2390a81a54832c9096ec5