mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
f8763bb077
PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
const { OutgoingMessage } = require('http');
|
|
|
|
const warn = 'OutgoingMessage.prototype._headerNames is deprecated';
|
|
common.expectWarning('DeprecationWarning', warn, 'DEP0066');
|
|
|
|
{
|
|
// Tests for _headerNames get method
|
|
const outgoingMessage = new OutgoingMessage();
|
|
outgoingMessage._headerNames;
|
|
}
|