File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 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) => {
12201220} ) ;
12211221
12221222function 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
12231226 input = `${ input } ` ;
12241227 for ( let n = 0 ; n < input . length ; n ++ ) {
12251228 if ( input [ n ] . charCodeAt ( 0 ) > 0xff )
@@ -1233,6 +1236,9 @@ const kBase64Digits =
12331236 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' ;
12341237
12351238function 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
12361242 input = `${ input } ` ;
12371243 for ( let n = 0 ; n < input . length ; n ++ ) {
12381244 if ( ! kBase64Digits . includes ( input [ n ] ) )
You can’t perform that action at this time.
0 commit comments