'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; }