Update the Node.js atob/btoa compatibility info

Given that Node.js has finally implemented native support for `atob`/`btoa`, it can't hurt to update the comments in `src/shared/compatibility.js` so that we don't forget to remove the polyfills once Node.js version `16` becomes the lowest supported LTS release; see
 - https://developer.mozilla.org/en-US/docs/Web/API/atob#browser_compatibility
 - https://developer.mozilla.org/en-US/docs/Web/API/btoa#browser_compatibility
This commit is contained in:
Jonas Jenwald 2022-08-28 12:53:16 +02:00
parent d62cce455f
commit ca823d1bbc

View File

@ -23,7 +23,7 @@ if (
) {
globalThis._pdfjsCompatibilityChecked = true;
// Support: Node.js
// Support: Node.js<16.0.0
(function checkNodeBtoa() {
if (globalThis.btoa || !isNodeJS) {
return;
@ -34,7 +34,7 @@ if (
};
})();
// Support: Node.js
// Support: Node.js<16.0.0
(function checkNodeAtob() {
if (globalThis.atob || !isNodeJS) {
return;