Make `toLocaleString()` to point to the same implementation as `toString()`.
return slowToString.apply(this, arguments)
}
+Buffer.prototype.toLocaleString = Buffer.prototype.toString
+
Buffer.prototype.equals = function equals (b) {
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
if (this === b) return true
/"size" argument must be of type number/);
assert.throws(() => Buffer.alloc({ valueOf: () => -1 }),
/"size" argument must be of type number/);
-/*
+
assert.strictEqual(Buffer.prototype.toLocaleString, Buffer.prototype.toString);
{
var buf = Buffer.from('test');
assert.strictEqual(buf.toLocaleString(), buf.toString());
}
-
+/*
common.expectsError(() => {
Buffer.alloc(0x1000, 'This is not correctly encoded', 'hex');
}, {