We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da550aa commit 83d2b77Copy full SHA for 83d2b77
1 file changed
lib/buffer.js
@@ -523,8 +523,6 @@ Buffer.prototype.fill = function fill(val, start, end) {
523
};
524
525
526
-// TODO(trevnorris): fix these checks to follow new standard
527
-// write(string, offset = 0, length = buffer.length, encoding = 'utf8')
528
var writeWarned = false;
529
const writeMsg = 'Buffer.write(string, encoding, offset, length) is ' +
530
'deprecated. Use write(string[, offset[, length]]' +
@@ -617,8 +615,6 @@ Buffer.prototype.toJSON = function() {
617
615
618
616
619
620
-// TODO(trevnorris): currently works like Array.prototype.slice(), which
621
-// doesn't follow the new standard for throwing on out of range indexes.
622
Buffer.prototype.slice = function slice(start, end) {
623
const buffer = this.subarray(start, end);
624
Object.setPrototypeOf(buffer, Buffer.prototype);
0 commit comments