Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracted IncorrectModuleRegistryCallTypeParameterParserError to throwIfIncorrectModuleRegistryCallTypeParameterParserError #34941

Conversation

harsh-siriah
Copy link
Contributor

Summary

This PR is part of #34872.
This PR extracts IncorrectModuleRegistryCallTypeParameterParserError exception to a separate function inside an error-utils.js file

Changelog

[Internal] [Changed] - Extract IncorrectModuleRegistryCallTypeParameterParserError to a seperate function inside error-utils.js

Test Plan

yarn jest react-native-codegen

Added unit case in error-utils-test.js file

Screenshot 2022-10-11 at 4 42 03 PM

…wIfIncorrectModuleRegistryCallTypeParameterParserError
@analysis-bot
Copy link

analysis-bot commented Oct 11, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,772,336 +0
android hermes armeabi-v7a 7,173,428 +0
android hermes x86 8,085,593 +0
android hermes x86_64 8,057,158 +0
android jsc arm64-v8a 9,633,511 +0
android jsc armeabi-v7a 8,397,929 +0
android jsc x86 9,582,973 +0
android jsc x86_64 10,176,011 +0

Base commit: a885b1f
Branch: main

@analysis-bot
Copy link

analysis-bot commented Oct 11, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: a885b1f
Branch: main

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful work! Thank you so so much for this.

I left some comments to change the naming of some parameter and tests, since we are trying to pull together Flow and TypeScript so it can be more independent from the language.

@cipolleschi
Copy link
Contributor

Could you also rebase on main and solve the conflicts, please? 🙏

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 11, 2022
@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @harshsiri110 in bb519ec.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 14, 2022
mohitcharkha pushed a commit to mohitcharkha/react-native that referenced this pull request Oct 17, 2022
…wIfIncorrectModuleRegistryCallTypeParameterParserError (facebook#34941)

Summary:
This PR is part of facebook#34872.
This PR extracts `IncorrectModuleRegistryCallTypeParameterParserError` exception to a separate function inside an `error-utils.js` file

## Changelog

[Internal] [Changed] - Extract `IncorrectModuleRegistryCallTypeParameterParserError` to a seperate function inside `error-utils.js`

Pull Request resolved: facebook#34941

Test Plan:
```sh
yarn jest react-native-codegen
```
Added unit case in `error-utils-test.js` file

<img width="940" alt="Screenshot 2022-10-11 at 4 42 03 PM" src="https://user-images.githubusercontent.com/86605635/195076564-3b023c17-661c-4330-805c-0216c4391d59.png">

Reviewed By: dmytrorykun

Differential Revision: D40296642

Pulled By: cipolleschi

fbshipit-source-id: 7c7bba6a4f68e9b8fa4729a7651f22cce6d7ca6e
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…wIfIncorrectModuleRegistryCallTypeParameterParserError (facebook#34941)

Summary:
This PR is part of facebook#34872.
This PR extracts `IncorrectModuleRegistryCallTypeParameterParserError` exception to a separate function inside an `error-utils.js` file

## Changelog

[Internal] [Changed] - Extract `IncorrectModuleRegistryCallTypeParameterParserError` to a seperate function inside `error-utils.js`

Pull Request resolved: facebook#34941

Test Plan:
```sh
yarn jest react-native-codegen
```
Added unit case in `error-utils-test.js` file

<img width="940" alt="Screenshot 2022-10-11 at 4 42 03 PM" src="https://user-images.githubusercontent.com/86605635/195076564-3b023c17-661c-4330-805c-0216c4391d59.png">

Reviewed By: dmytrorykun

Differential Revision: D40296642

Pulled By: cipolleschi

fbshipit-source-id: 7c7bba6a4f68e9b8fa4729a7651f22cce6d7ca6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. hacktoberfest-accepted Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants