File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1220,6 +1220,9 @@ const lazyInvalidCharError = hideStackFrames((message, name) => {
1220
1220
} ) ;
1221
1221
1222
1222
function btoa ( input ) {
1223
+ // The implementation here has not been performance optimized in any way and
1224
+ // should not be.
1225
+ // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932
1223
1226
input = `${ input } ` ;
1224
1227
for ( let n = 0 ; n < input . length ; n ++ ) {
1225
1228
if ( input [ n ] . charCodeAt ( 0 ) > 0xff )
@@ -1233,6 +1236,9 @@ const kBase64Digits =
1233
1236
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' ;
1234
1237
1235
1238
function atob ( input ) {
1239
+ // The implementation here has not been performance optimized in any way and
1240
+ // should not be.
1241
+ // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932
1236
1242
input = `${ input } ` ;
1237
1243
for ( let n = 0 ; n < input . length ; n ++ ) {
1238
1244
if ( ! kBase64Digits . includes ( input [ n ] ) )
You can’t perform that action at this time.
0 commit comments