Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! buffer: fix atob input validation
Co-authored-by: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
aduh95 and targos authored Mar 31, 2022
commit a63982f305ed84a8094065f8e24021a589fef148
1 change: 1 addition & 0 deletions test/parallel/test-btoa-atob.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ throws(() => buffer.atob(), /TypeError/);
throws(() => buffer.btoa(), /TypeError/);

strictEqual(atob(' '), '');
Comment thread
aduh95 marked this conversation as resolved.
strictEqual(atob(' YW\tJ\njZA=\r= '), 'abcd');