encoding: fix asserts.
This commit is contained in:
parent
66c4fd8a77
commit
b2649a6cd1
@ -1090,10 +1090,10 @@ function inherits(obj, from) {
|
|||||||
|
|
||||||
function enforce(value, offset, reason) {
|
function enforce(value, offset, reason) {
|
||||||
if (!value)
|
if (!value)
|
||||||
throw new EncodingError(offset, reason);
|
throw new encoding.EncodingError(offset, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
function assert(value, offset) {
|
function assert(value, offset) {
|
||||||
if (!value)
|
if (!value)
|
||||||
throw new EncodingError(offset, 'Out of bounds read');
|
throw new encoding.EncodingError(offset, 'Out of bounds read');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user