We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3aac48 commit a14c500Copy full SHA for a14c500
test/parallel/test-http2-util-nghttp2error.js
@@ -0,0 +1,16 @@
1
+// Flags: --expose-internals
2
+'use strict';
3
+
4
+const common = require('../common');
5
+const { strictEqual } = require('assert');
6
+const { NghttpError } = require('internal/http2/util');
7
8
+common.expectsError(() => {
9
+ const err = new NghttpError(-501);
10
+ strictEqual(err.errno, -501);
11
+ throw err;
12
+}, {
13
+ code: 'ERR_HTTP2_ERROR',
14
+ type: NghttpError,
15
+ message: 'Invalid argument'
16
+});
0 commit comments