You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check for broken implementation of Uint8Array.prototype.toHex #1439
Not sure if v8 staging features are covered, but when using deno run --v8-flags=--js-base-64 or node --js-base-64 or chrome://flags/#enable-javascript-harmony, the following code gives wrong output:
// foo.ts, run with:// deno run --v8-flags=--js-base-64 foo.tsimport'https://deno.land/x/corejs@v3.43.0/index.js'console.log(newUint8Array(8).fill(255).toHex())// gives VfVfVfVfVfVfVfVf
In those cases should we replace the whole implementation (like similar to above PR) or is it possible to validate the options and then call the builtin functions?
Activity
zloirock commentedon Jun 28, 2025
Thanks for the note. Feel free to add a PR -)
brc-dd commentedon Jun 29, 2025
Created #1440.
There are other issues as well, but not sure if they need fixing.
^in v8 implementation, these throw:
The SyntaxError itself is correct (because of wrong padding), but seems like v8 ignores malformed options.
^these don't throw anything.
I'll probably report these on the Chromium issue.
zloirock commentedon Jun 29, 2025
@brc-dd I think that those cases also should be fixed.
brc-dd commentedon Jun 29, 2025
In those cases should we replace the whole implementation (like similar to above PR) or is it possible to validate the options and then call the builtin functions?
zloirock commentedon Jun 29, 2025
Since it's flagged, I think it's fine just to replace them - I hope that it will be fixed when it will be shipped.