Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix null comparison for skip_printing_nulls (#3784)
Summary: In `skip_printing_nulls` (#3626) we change some `null` values to be undefined by skipping them in the output. Generally, the js code uses loose equality, either as * `field.X != null` * `field.X ?? default` * `if (field.X) {` which allows us to do this safely. The comparison this commit fixes was a rare exception to that showing up when using `required`, mocking data and `skip_printing_nulls` is enabled. Pull Request resolved: #3784 Reviewed By: captbaritone Differential Revision: D33965847 Pulled By: alunyov fbshipit-source-id: 98f414e4f90738fcb68c940d6ce7208734c49297
- Loading branch information