Merge pull request #15356 from Snuffleupagus/Node-amend-compat-info

Update the Node.js `atob`/`btoa` compatibility info
This commit is contained in:
Tim van der Meij 2022-08-28 13:04:11 +02:00 committed by GitHub
commit 172ccdbe5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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