| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -513,9 +513,6 @@ Buffer.prototype.set = internalUtil.deprecate(function set(offset, v) { | |||
| 513 | 513 | return this[offset] = v; | |
| 514 | 514 | }, 'Buffer.set is deprecated. Use array indexes instead.'); | |
| 515 | 515 | ||
| 516 | - | ||
| 517 | - // TODO(trevnorris): fix these checks to follow new standard | ||
| 518 | - // write(string, offset = 0, length = buffer.length, encoding = 'utf8') | ||
| 519 | 516 | var writeWarned = false; | |
| 520 | 517 | const writeMsg = 'Buffer.write(string, encoding, offset, length) is ' + | |
| 521 | 518 | 'deprecated. Use write(string[, offset[, length]]' + | |
@@ -608,8 +605,6 @@ Buffer.prototype.toJSON = function() { | |||
| 608 | 605 | }; | |
| 609 | 606 | ||
| 610 | 607 | ||
| 611 | - // TODO(trevnorris): currently works like Array.prototype.slice(), which | ||
| 612 | - // doesn't follow the new standard for throwing on out of range indexes. | ||
| 613 | 608 | Buffer.prototype.slice = function slice(start, end) { | |
| 614 | 609 | const buffer = this.subarray(start, end); | |
| 615 | 610 | Object.setPrototypeOf(buffer, Buffer.prototype); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments