-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Float16Array
not working in node:v8
serde
#55574
Comments
This doesn't have anything to do with the $ node -p "Float16Array"
[eval]:1
Float16Array
^
ReferenceError: Float16Array is not defined |
Well, yeah, at the moment it doesn't. But once |
As noted in #52416 (comment), support for |
Hiya, Bartek.
Seems uncontroversial to me. The one thing is that |
NodeJS type system doesn't define `float16`, so we don't currently have a way of detecting such arrays. In Python bindings we allow passing an additional string parameter together with `uint16` arrays to override the logical type for the missing `bfloat16`. In JS, for now, it's wiser to wait for the NAPI to define the missing `napi_typedarray_type` value. nodejs/node#55574 (comment) nodejs/node#52416 (comment)
Hey Ben, thanks for commenting. Should I open a PR that updates these function already? As you said they would fail with |
I guess we can update the functions and add the |
Version
23.1.0
Platform
Subsystem
node:v8
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
serialize
calls finishes successfuly.What do you see instead?
Additional information
While I understand that
Float16Array
is not yet supported (eg. #52416) as it requires upgrade to V8 12.4, maybe there's a chance we could agree thatarrayBufferViewTypeToIndex
will return13
for theFloat16Array
?node/lib/v8.js
Lines 277 to 293 in 5633c62
Thanks!
The text was updated successfully, but these errors were encountered: