Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow PseudoHandle casting and easier assignment.
Summary: `PinnedHermesValue` can now be assigned to from a `PseudoHandle`, so this allows assignment into registers and such without having to remember to invalidate the `PseudoHandle` afterwards. Add `vmcast` and `dyn_vmcast` static functions to `PseudoHandle` which are analogous to `Handle`. The use of the latter does require invalidating the initial handle, so it doesn't really work for assignment in the condition of an `if` statement directly, but is sufficient for most other use cases. Reviewed By: tmikov Differential Revision: D19746814 fbshipit-source-id: 84ed028279c0924b630fad37db728dfa79ca9b96
- Loading branch information