lib: handle Float16Array in node:v8 serdes
This commit adds support for Float16Array in node: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 in node:v8 serde APIs
in a future compatible way.
Closes https://github.com/nodejs/node/issues/55574.
CC @bnoordhuis @targos
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.00%. Comparing base (
3511c5c) to head (bce30a4). Report is 82 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #55996 +/- ##
==========================================
+ Coverage 87.95% 88.00% +0.04%
==========================================
Files 656 656
Lines 188304 188935 +631
Branches 35972 35972
==========================================
+ Hits 165624 166271 +647
+ Misses 15853 15833 -20
- Partials 6827 6831 +4
| Files with missing lines | Coverage Δ | |
|---|---|---|
| lib/v8.js | 98.66% <100.00%> (+0.01%) |
:arrow_up: |
CI: https://ci.nodejs.org/job/node-test-pull-request/63767/
CI: https://ci.nodejs.org/job/node-test-pull-request/63844/
CI: https://ci.nodejs.org/job/node-test-pull-request/63863/
CI: https://ci.nodejs.org/job/node-test-pull-request/63866/
CI: https://ci.nodejs.org/job/node-test-pull-request/63922/
Landed in ac7fea6a1239feb9bc8c25281860aeb0e5864bc3