File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1212,8 +1212,9 @@ const lazyInvalidCharError = hideStackFrames((message, name) => {
1212
1212
} ) ;
1213
1213
1214
1214
function btoa ( input ) {
1215
- // TODO(@jasnell): The implementation here has not been performance
1216
- // optimized in any way.
1215
+ // The implementation here has not been performance optimized in any way and
1216
+ // should not be.
1217
+ // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932
1217
1218
input = `${ input } ` ;
1218
1219
for ( let n = 0 ; n < input . length ; n ++ ) {
1219
1220
if ( input [ n ] . charCodeAt ( 0 ) > 0xff )
@@ -1227,8 +1228,9 @@ const kBase64Digits =
1227
1228
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' ;
1228
1229
1229
1230
function atob ( input ) {
1230
- // TODO(@jasnell): The implementation here has not been performance
1231
- // optimized in any way.
1231
+ // The implementation here has not been performance optimized in any way and
1232
+ // should not be.
1233
+ // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932
1232
1234
input = `${ input } ` ;
1233
1235
for ( let n = 0 ; n < input . length ; n ++ ) {
1234
1236
if ( ! kBase64Digits . includes ( input [ n ] ) )
You can’t perform that action at this time.
0 commit comments