-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Implement IDL Float16Array #52416
Comments
Does it mean it's not going to be implemented by the JS engine? |
Bindings are typically not implemented in the JS engine I think? Otherwise it would not make a whole lot of sense for Node to ask for implementer bugs to be filed when Web IDL gets changed. |
If/when https://github.com/tc39/proposal-float16array is implemented by V8, it will be available for Node.js without any effort (expect upgrading the vendored V8 version) from us. EDIT: V8 has already started implementation work: https://chromium-review.googlesource.com/c/v8/v8/+/5082566 |
There's various places in Node which do something for every typed array, like the |
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)
As per whatwg/webidl#1398.
The text was updated successfully, but these errors were encountered: