1'use strict'; 2const common = require('../common'); 3 4const { OutgoingMessage } = require('http'); 5 6const warn = 'OutgoingMessage.prototype._headerNames is deprecated'; 7common.expectWarning('DeprecationWarning', warn, 'DEP0066'); 8 9{ 10 // Tests for _headerNames get method 11 const outgoingMessage = new OutgoingMessage(); 12 outgoingMessage._headerNames; // eslint-disable-line no-unused-expressions 13} 14