Files
react-native/React/Base
Peter Argany 79b573511b Fix RCTNullIfNil macro
Summary:
`RCTNullIfNil()` can return nil in certain scenarios.

Example, given:
`#define RCTNullIfNil(value) (value ?: (id)kCFNull)`
`RCTNullIfNil(nil == nil ? nil : @"lol")`
expanded out
`nil == nil ? nil : @"lol" ?: (id)kCFNull`

`?:` takes precedence, so reduced:
`nil == nil ? nil : @"lol"`
`nil`

Changelog: [iOS] [Fixed] Fixed longstanding bug where RCTNullIfNil() can return nil

Reviewed By: RSNara

Differential Revision: D17943530

fbshipit-source-id: 8c6e3dd2d86cbc8ff1fcbef732674835a312ef26
2019-10-15 18:02:27 -07:00
..
2019-03-12 19:41:51 -07:00
2019-03-12 19:41:51 -07:00
2019-09-30 07:03:51 -07:00
2019-09-30 07:03:51 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2018-09-17 12:33:01 -07:00
2019-09-20 18:28:39 -07:00
2019-09-20 18:28:38 -07:00
2019-10-07 11:44:11 -07:00
2019-10-08 07:38:17 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-08-30 17:07:57 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-10-15 18:02:27 -07:00
2019-07-12 16:51:28 -07:00