Bug 1885337 - Part 1: Implement to/from hex methods. r=dminor
commitfa04aeae994002317423ef383f373a1eb4a75510
authorAndré Bargull <andre.bargull@gmail.com>
Tue, 19 Mar 2024 13:56:45 +0000 (19 13:56 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Tue, 19 Mar 2024 13:56:45 +0000 (19 13:56 +0000)
treec19047c6e168bb80c0eb98aeafd87e812281e685
parentae4cdfc2b9cbfa3283f9057a7ab08ef905625ca9
Bug 1885337 - Part 1: Implement to/from hex methods. r=dminor

Add preference for the proposal and implement to/from hex-string methods. The
initial implementation doesn't yet try to optimise allocations. For example as
a follow-up, we could directly allocate in the correct jemalloc arena instead of
first creating an intermediate `js::Vector`.

Differential Revision: https://phabricator.services.mozilla.com/D204636
js/public/friend/ErrorNumbers.msg
js/src/shell/js.cpp
js/src/vm/CommonPropertyNames.h
js/src/vm/JSObject.cpp
js/src/vm/TypedArrayObject.cpp
modules/libpref/init/StaticPrefList.yaml