blob: 7a9009515b323487e3676cc29989e1374d4353ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Flags: --expose-internals
'use strict';
const common = require('../common');
const { strictEqual } = require('assert');
const { NghttpError } = require('internal/http2/util');
common.expectsError(() => {
const err = new NghttpError(-501);
strictEqual(err.errno, -501);
throw err;
}, {
code: 'ERR_HTTP2_ERROR',
type: NghttpError,
message: 'Invalid argument'
});
|