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: check invalid argument error for option · nodejs/node@7577e75

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-whatwg-encoding-textdecoder.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-whatwg-encoding-textdecoder.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-whatwg-encoding-textdecoder.js
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ testDecodeSample(
233233
]
234234
);
235235

236+
{
237+
common.expectsError(
238+
() => new TextDecoder('utf-8', 1),
239+
{
240+
code: 'ERR_INVALID_ARG_TYPE',
241+
type: TypeError
242+
}
243+
);
244+
}
245+
236246
// From: https://github.com/w3c/web-platform-tests/blob/master/encoding/api-invalid-label.html
237247
[
238248
'utf-8',

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.