node/test/parallel/test-https-agent-constructor.js
cjihrig d51cd61713
https: support agent construction without new
Fixes: https://github.com/nodejs/node/issues/12918
PR-URL: https://github.com/nodejs/node/pull/12927
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2017-07-17 10:18:01 -04:00

7 lines
199 B
JavaScript

'use strict';
require('../common');
const assert = require('assert');
const https = require('https');
assert.doesNotThrow(() => { https.Agent(); });
assert.ok(https.Agent() instanceof https.Agent);