Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information