GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — buffer: minor cleanup from rebase · nodejs/node@e5ada11

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • buffer_new.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/buffer_new.js‎

Copy file name to clipboardExpand all lines: lib/internal/buffer_new.js
+1-10Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -457,16 +457,7 @@ Buffer.prototype.write = function(string, offset, length, encoding) {
457457

458458
// XXX legacy write(string, encoding, offset, length) - remove in v0.13
459459
} else {
460-
if (!writeWarned) {
461-
if (process.throwDeprecation)
462-
throw new Error(writeMsg);
463-
else if (process.traceDeprecation)
464-
console.trace(writeMsg);
465-
else
466-
console.error(writeMsg);
467-
writeWarned = true;
468-
}
469-
460+
writeWarned = internalUtil.printDeprecationMessage(writeMsg, writeWarned);
470461
var swap = encoding;
471462
encoding = offset;
472463
offset = length >>> 0;

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.