Skip to content

Extracted UnsupportedModulePropertyParserError into throwIfModuleTypeIsUnsupported function in error-utils.js file#34966

Closed
mohitcharkha wants to merge 1 commit into
facebook:mainfrom
mohitcharkha:extract-codegen-UnsupportedModulePropertyParserError
Closed

Extracted UnsupportedModulePropertyParserError into throwIfModuleTypeIsUnsupported function in error-utils.js file#34966
mohitcharkha wants to merge 1 commit into
facebook:mainfrom
mohitcharkha:extract-codegen-UnsupportedModulePropertyParserError

Conversation

@mohitcharkha
Copy link
Copy Markdown
Contributor

Summary

This PR is part of #34872
This PR extracts UnsupportedModulePropertyParserError exception to throwIfModuleTypeIsUnsupported function inside error-utils.js file

Changelog

[Internal] [Changed] - Extract UnsupportedModulePropertyParserError to throwIfModuleTypeIsUnsupported function inside error-utils.js

Test Plan

yarn jest react-native-codegen
Added unit case in error-utils-test.js file

Screenshot 2022-10-13 at 12 14 19 PM

…peIsUnsupported function in error-utils.js file
@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 13, 2022
@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,772,336 -82
android hermes armeabi-v7a 7,173,428 -181
android hermes x86 8,085,593 -104
android hermes x86_64 8,057,158 -125
android jsc arm64-v8a 9,633,511 -45
android jsc armeabi-v7a 8,397,929 -121
android jsc x86 9,582,973 -35
android jsc x86_64 10,176,011 -87

Base commit: c42d824
Branch: main

@analysis-bot
Copy link
Copy Markdown

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

Base commit: c42d824
Branch: main

Copy link
Copy Markdown
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.

Amazing, thank you so much for taking this!

@facebook-github-bot
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

This pull request was successfully merged by @mohitcharkha in f645404.

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
…IsUnsupported function in error-utils.js file (facebook#34966)

Summary:
This PR is part of facebook#34872
This PR extracts `UnsupportedModulePropertyParserError` exception to `throwIfModuleTypeIsUnsupported` function inside `error-utils.js` file

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Internal] [Changed] - Extract `UnsupportedModulePropertyParserError` to `throwIfModuleTypeIsUnsupported` function inside `error-utils.js`

Pull Request resolved: facebook#34966

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

<img width="939" alt="Screenshot 2022-10-13 at 12 14 19 PM" src="https://user-images.githubusercontent.com/86604753/195521643-6a197b51-7038-48f1-8b92-2c8c2786d66b.png">

Reviewed By: christophpurrer

Differential Revision: D40337936

Pulled By: cipolleschi

fbshipit-source-id: 74fb116b48634c5e3b6c11f8b71ad59f290d959e
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