buffer: expose btoa and atob as globals
Requires https://github.com/nodejs/node/pull/37529 to land first. The first two commits are from that other PR
Exposes the atob()
and btoa()
functions introduced in #37529 as globals as they are in the browsers and other platforms.
/cc @ljharb