File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -523,8 +523,6 @@ Buffer.prototype.fill = function fill(val, start, end) {
523523} ;
524524
525525
526- // TODO(trevnorris): fix these checks to follow new standard
527- // write(string, offset = 0, length = buffer.length, encoding = 'utf8')
528526var writeWarned = false ;
529527const writeMsg = 'Buffer.write(string, encoding, offset, length) is ' +
530528 'deprecated. Use write(string[, offset[, length]]' +
@@ -617,8 +615,6 @@ Buffer.prototype.toJSON = function() {
617615} ;
618616
619617
620- // TODO(trevnorris): currently works like Array.prototype.slice(), which
621- // doesn't follow the new standard for throwing on out of range indexes.
622618Buffer . prototype . slice = function slice ( start , end ) {
623619 const buffer = this . subarray ( start , end ) ;
624620 Object . setPrototypeOf ( buffer , Buffer . prototype ) ;
You can’t perform that action at this time.
0 commit comments