Skip to content

Commit

Permalink
add missing new
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 13, 2019
1 parent c70a848 commit e107169
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 @@ -127,7 +127,7 @@ function from (value, encodingOrOffset, length) {
}

if (value == null) {
throw TypeError(
throw new TypeError(
'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
'or Array-like Object. Received type ' + (typeof value)
)
Expand Down

0 comments on commit e107169

Please sign in to comment.