diff --git a/lib/utils/encoding.js b/lib/utils/encoding.js index 917c78f4..77e8e8a1 100644 --- a/lib/utils/encoding.js +++ b/lib/utils/encoding.js @@ -1090,10 +1090,10 @@ function inherits(obj, from) { function enforce(value, offset, reason) { if (!value) - throw new EncodingError(offset, reason); + throw new encoding.EncodingError(offset, reason); } function assert(value, offset) { if (!value) - throw new EncodingError(offset, 'Out of bounds read'); + throw new encoding.EncodingError(offset, 'Out of bounds read'); }