We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7822b commit b5b23bdCopy full SHA for b5b23bd
test/parallel/test-http-outgoing-proto.js
@@ -96,11 +96,14 @@ assert.throws(() => {
96
message: 'The first argument must be one of type string or buffer'
97
}));
98
99
-// addTrailers
+// 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.
103
assert.throws(() => {
104
const outgoingMessage = new OutgoingMessage();
105
outgoingMessage.addTrailers();
-}, /^TypeError: Cannot convert undefined or null to object$/);
106
+}, TypeError);
107
108
109
0 commit comments