-
Notifications
You must be signed in to change notification settings - Fork 12.8k
base64/hex methods missing from Uint8Array
#61695
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
Comments
I wouldn't say it's widely supported when basically the engine with over 90 % market does not support it. |
V8 does not have a market share of over 90%. TypeScript is also used for browser code. |
V8 is also Chrome and Edge's runtime, so it's a very big problem if it's not there. |
Note that, in the case of DOM APIs, type definitions seem to be generated automatically once two major engine implementations exist. I don't see why this standard JavaScript feature should be different. (Isn't this also the point of having an 'ESNext' library?) |
Further note that Chromium is working on shipping: https://issues.chromium.org/issues/42204568. The omission in TypeScript will need to be fixed soon (and will definitely be). Representing |
I submitted a PR for this issue: #61696 |
π Search Terms
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.9.0-dev.20250512#code/KoSwdgLgHAggTnAhgTwHQDM4HsC2AhRAZwFMA2AFgAoBKAKFElgRQ2xwAliAPG+8aeEjQAHbBCwRkw4qhIQAYmwIkKvBgOYixEqTLmLcnHnXVMhqURJ3TU45WSon+ZlpfGSb4ozSA
π» Code
π Actual behavior
Property XXX does not exist β¦
errors in each case.π Expected behavior
Correct type definitions should exist.
Additional information about the issue
These features have been implemented by every major JavaScript engine except V8.
See:
See also:
Uint8Array
Β #60743Uint8Array
Β #60612The text was updated successfully, but these errors were encountered: