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: make test-http-outgoing-proto agnostic · nodejs/node@b5b23bd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-http-outgoing-proto.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-http-outgoing-proto.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-outgoing-proto.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,14 @@ assert.throws(() => {
9696
message: 'The first argument must be one of type string or buffer'
9797
}));
9898

99-
// addTrailers
99+
// addTrailers()
100+
// The `Error` comes from the JavaScript engine so confirm that it is a
101+
// `TypeError` but do not check the message. It will be different in different
102+
// JavaScript engines.
100103
assert.throws(() => {
101104
const outgoingMessage = new OutgoingMessage();
102105
outgoingMessage.addTrailers();
103-
}, /^TypeError: Cannot convert undefined or null to object$/);
106+
}, TypeError);
104107

105108
assert.throws(() => {
106109
const outgoingMessage = new OutgoingMessage();

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.