var loweredCase = false;
start = start >>> 0;
- end = util.isUndefined(end) ? this.length : end >>> 0;
+ end = util.isUndefined(end) || end === Infinity ? this.length : end >>> 0;
if (!encoding) encoding = 'utf8';
if (start < 0) start = 0;
assert.strictEqual(util.inspect(b), expected);
assert.strictEqual(util.inspect(s), expected);
+
+buffer.INSPECT_MAX_BYTES = Infinity;
+
+assert.doesNotThrow(function() {
+ assert.strictEqual(util.inspect(b), expected);
+ assert.strictEqual(util.inspect(s), expected);
+});
\ No newline at end of file