File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -539,8 +539,6 @@ Buffer.prototype.set = internalUtil.deprecate(function set(offset, v) {
539
539
} , 'Buffer.set is deprecated. Use array indexes instead.' ) ;
540
540
541
541
542
- // TODO(trevnorris): fix these checks to follow new standard
543
- // write(string, offset = 0, length = buffer.length, encoding = 'utf8')
544
542
var writeWarned = false ;
545
543
const writeMsg = 'Buffer.write(string, encoding, offset, length) is ' +
546
544
'deprecated. Use write(string[, offset[, length]]' +
@@ -633,8 +631,6 @@ Buffer.prototype.toJSON = function() {
633
631
} ;
634
632
635
633
636
- // TODO(trevnorris): currently works like Array.prototype.slice(), which
637
- // doesn't follow the new standard for throwing on out of range indexes.
638
634
Buffer . prototype . slice = function slice ( start , end ) {
639
635
const buffer = this . subarray ( start , end ) ;
640
636
Object . setPrototypeOf ( buffer , Buffer . prototype ) ;
You can’t perform that action at this time.
0 commit comments