From b2649a6cd1be95f38c84b422b9d7322077caa7ec Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 15 Mar 2017 07:21:04 -0700 Subject: [PATCH] encoding: fix asserts. --- lib/utils/encoding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); }