Skip to content

Commit

Permalink
missing new
Browse files Browse the repository at this point in the history
duuh...
  • Loading branch information
sindresorhus committed Oct 12, 2014
1 parent 26dbd31 commit a4a148c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function (str, n) {
}

if (n < 0 || !isFinite(n)) {
throw TypeError('Expected a finite positive number');
throw new TypeError('Expected a finite positive number');
}

var ret = '';
Expand Down

0 comments on commit a4a148c

Please sign in to comment.