forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: The union makes it easier to debug Flow Native with a normal C debugger. This doesn't introduce new UB because, regardless of whether union type punning is supported or not, reading an union member different from the one which was written to and using the value is already UB. The only valid case is getBool() and that uses memcpy(). Reviewed By: neildhar Differential Revision: D37266753 fbshipit-source-id: 27cef6610e59fa1b293503fc082ed6c870a7e4fa
- Loading branch information
1 parent
65df74e
commit 0dc6ff3
Showing
1 changed file
with
40 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters