Skip to content

Commit 19c2f3d

Browse files
committed
buffer: remove TODOs in atob / btoa
Refs: nodejs#38433 (comment)
1 parent efd70f4 commit 19c2f3d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/buffer.js

-4
Original file line numberDiff line numberDiff line change
@@ -1220,8 +1220,6 @@ const lazyInvalidCharError = hideStackFrames((message, name) => {
12201220
});
12211221

12221222
function btoa(input) {
1223-
// TODO(@jasnell): The implementation here has not been performance
1224-
// optimized in any way.
12251223
input = `${input}`;
12261224
for (let n = 0; n < input.length; n++) {
12271225
if (input[n].charCodeAt(0) > 0xff)
@@ -1235,8 +1233,6 @@ const kBase64Digits =
12351233
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
12361234

12371235
function atob(input) {
1238-
// TODO(@jasnell): The implementation here has not been performance
1239-
// optimized in any way.
12401236
input = `${input}`;
12411237
for (let n = 0; n < input.length; n++) {
12421238
if (!kBase64Digits.includes(input[n]))

0 commit comments

Comments
 (0)