-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interop): Add methods
toHexString
and toDecimalString
to Pointer
This allows for correct serialization of pointers through strings. Which can be used for passing native objects to workers as discussed in #620 (comment). The need for these methods arises from the fact that `toNumber` can't be used for negative pointer values, due to JavaScript's values inability to represent very large and/or negative 64-bit integer values as integers. There is a real-world use-case for the value of `-1` shown in #921
- Loading branch information
1 parent
8d69895
commit 8b4157f
Showing
2 changed files
with
64 additions
and
0 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
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