node
node copied to clipboard
src: convert all endian checks to constexpr
This is finally possible in C++20 without having to rely on compiler-defined macros, assuming none of our supported platforms are mixed-endian.
Refs: https://github.com/nodejs/node/pull/44411
CI: https://ci.nodejs.org/job/node-test-pull-request/59255/
CI: https://ci.nodejs.org/job/node-test-pull-request/59291/
Landed in 177b8b957ba8f84373af1ff2a3baed943d1a8e08