Browse Source

throw an error object

master
Feross Aboukhadijeh 11 years ago
parent
commit
32124f47e1
  1. 2
      lib/b64.js

2
lib/b64.js

@ -34,7 +34,7 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
var i, j, l, tmp, placeHolders, arr;
if (b64.length % 4 > 0) {
throw 'Invalid string. Length must be a multiple of 4';
throw new Error('Invalid string. Length must be a multiple of 4')
}
// the number of equal signs (place holders)

Loading…
Cancel
Save