We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59e2884 commit c65bc39Copy full SHA for c65bc39
index.js
@@ -31,7 +31,7 @@ function decodeBase64WithBufferFrom(base64) {
31
}
32
33
function decodeBase64WithNewBuffer(base64) {
34
- if (typeof value === 'number') {
+ if (typeof base64 === 'number') {
35
throw new TypeError('The value to decode must not be of type number.');
36
37
return new Buffer(base64, 'base64').toString();
0 commit comments