Skip to content

ExceptionsManager: Fix soft error reporting#47465

Closed
RSNara wants to merge 1 commit into
facebook:mainfrom
RSNara:export-D65551648
Closed

ExceptionsManager: Fix soft error reporting#47465
RSNara wants to merge 1 commit into
facebook:mainfrom
RSNara:export-D65551648

Conversation

@RSNara
Copy link
Copy Markdown
Contributor

@RSNara RSNara commented Nov 6, 2024

Summary:
When you do @(NO), in objc, it creates an NSNumber.

So this if condition actually evaluates to true:

if (@(NO)) 

This means that all soft errors will get logged as fatals on ios.

Changelog: [Internal]

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: D65551648

Summary:
When you do @(NO), in objc, it creates an NSNumber.

So this if condition actually evaluates to true: 

```
if (@(NO)) 
```

This means that all soft errors will get logged as fatals on ios. 

Changelog: [Internal]

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: D65551648
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 6, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65551648

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 50b3c22.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @RSNara in 50b3c22

When will my fix make it into a release? | How to file a pick request?

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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants