-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: handle Float16Array in node:v8 serdes #55996
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linter is failing (make lint-js
).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55996 +/- ##
==========================================
+ Coverage 87.95% 88.00% +0.04%
==========================================
Files 656 656
Lines 188304 189006 +702
Branches 35972 35992 +20
==========================================
+ Hits 165624 166334 +710
+ Misses 15853 15841 -12
- Partials 6827 6831 +4
|
Co-authored-by: Ben Noordhuis <[email protected]>
@@ -31,6 +31,7 @@ const { | |||
Uint32Array, | |||
Uint8Array, | |||
Uint8ClampedArray, | |||
globalThis, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
globalThis, | |
globalThis: { | |
Float16Array, | |
}, |
This commit adds support for
Float16Array
innode:v8
serde APIs.While
Float16Array
is not available as a global yet (pending stabilization in V8),I "reserved" the next available index for serde purposes so other runtimes, like Deno,
that already support
Float16Array
, can support it innode:v8
serde APIsin a future compatible way.
Closes #55574.