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 — test: string-decorater.lastChar · nodejs/node@2d36150

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-string-decoder.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-string-decoder.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-string-decoder.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ test('utf16le', Buffer.from('3DD84DDC', 'hex'), '\ud83d\udc4d'); // thumbs up
9090
decoder = new StringDecoder('utf8');
9191
assert.strictEqual(decoder.write(Buffer.from('E1', 'hex')), '');
9292

93-
// A quick test for lastNeed & lastTotal which are undocumented.
93+
// A quick test for lastChar, lastNeed & lastTotal which are undocumented.
94+
assert(decoder.lastChar.equals(new Uint8Array([0xe1, 0, 0, 0])));
9495
assert.strictEqual(decoder.lastNeed, 2);
9596
assert.strictEqual(decoder.lastTotal, 3);
9697

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.