Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v8.9.4 proposal #17772

Closed
wants to merge 282 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
aef0834
src: remove unnecessary call to SetHiddenPrototype
verwaest Oct 27, 2017
d07403d
doc: add hashseed to collaborators
hashseed Nov 7, 2017
ea1efca
test: flag known flake
refack Nov 10, 2017
728e57b
src: implement backtrace-on-abort for windows
addaleax Nov 11, 2017
fca180e
test: add basic WebAssembly test
stevekinney Nov 4, 2017
0348dad
build: prevent echoing of recipes for test target
danbev Nov 14, 2017
c69590d
test: --enable-static linked executable
danbev Aug 23, 2017
0bbeb8c
doc: add Table of Contents to Cpp style guide
fhinkel Nov 15, 2017
eb7285d
path: remove obsolete comment
Trott Nov 14, 2017
6411fe2
test: make REPL test pass in coverage mode
addaleax Nov 16, 2017
826e718
src: perf_hooks: fix wrong sized delete
ofrobots Nov 9, 2017
bb5a3aa
build: fix cctest target --with-dtrace
danbev Nov 15, 2017
44d5ecf
src: use smart pointer instead of new and delete
fhinkel Nov 12, 2017
f30fcdb
doc: mention smart pointers in Cpp style guide
fhinkel Nov 15, 2017
7737d11
lib: replace string concatenation with template
VijiKannan Nov 14, 2017
962fd75
tools: try installing js-yaml only once
joyeecheung Nov 1, 2017
d738c6b
doc: document common pattern for instanceof checks
mhdawson Nov 2, 2017
019d1a3
doc,win: clarify WSL support
joaocgreis Nov 14, 2017
fe514a7
doc: add Support section in README
Trott Oct 26, 2017
6d5620d
doc: delete unused definition in README.md
vsemozhetbyt Nov 17, 2017
e4788cd
tools: fail tests if malformed status file
Trott Nov 3, 2017
7e8d60e
test: move timing-sensitive test to sequential
Trott Nov 5, 2017
3fc7050
benchmark: use unique filenames in fs benchmarks
Trott Nov 5, 2017
0f37ff1
doc: reorganize collaborator guide
joyeecheung Nov 15, 2017
254d1b7
doc: fix a link in dgram.md
vsemozhetbyt Nov 17, 2017
0079b94
test: use arrow functions instead of bind
tniessen Nov 16, 2017
ff1da17
doc: explicitly document highWaterMark option
eps1lon Nov 15, 2017
f0fb1d4
build: enforce order of dependency when building addons
joyeecheung Nov 15, 2017
d748e4a
doc: add note about using cluster without networking
pimlie Nov 15, 2017
44bc65e
test: utilize common.mustCall() on child exit
sreepurnajasti Nov 13, 2017
3e62c38
src: fix size of CounterSet
wip0 Nov 13, 2017
4d85687
build: minor corrections to configure descriptions
danbev Nov 16, 2017
3531043
stream: use arrow fns for 'this' in readable
vipinmenon Nov 10, 2017
a69dcc0
doc: avoid mentioning 'uncaughtException'
lpinca Nov 9, 2017
c01d934
test: fs.write() if 3rd argument is a callback, not offset
Nov 15, 2017
333537a
doc: change v8 to V8
Trott Nov 17, 2017
d4e4207
src: use std::unique_ptr in base-object-inl.h
fhinkel Nov 16, 2017
7b9458b
test: reduce benchmark cases in test-benchmark-buffer
Trott Nov 18, 2017
ad5f2d2
src: use unique_ptr for http2_state
fhinkel Nov 16, 2017
be088b9
doc: add missing introduced_in comments
lpinca Nov 4, 2017
2c62ff9
build: do not build doc in source tarball
joyeecheung Nov 17, 2017
88a5c13
test: replace assert.throws w/ common.expectsError
SethGreylyn Nov 17, 2017
56afb7f
test: make debugging of inspector-port-zero easier
gibfahn Nov 2, 2017
92e0e2e
tools: allow running test.py without configuring
gibfahn Oct 30, 2017
72e2535
build: Allow linking against an external copy of nghttp2.
EdSchouten Nov 6, 2017
6558363
doc: remove IRC node-dev link from README
Trott Nov 17, 2017
cb430a7
doc: merge Working Groups with Contributing to Node.js in README
Trott Nov 17, 2017
44562dd
doc: add Contributing to Node.js to the README ToC
Trott Nov 17, 2017
96bf44a
doc: normalize ToC indentation with heading levels in README
Trott Nov 17, 2017
cbe1e5c
src: abstract getpid() operation
bnoordhuis Nov 20, 2017
fe1ceb9
src: inspector context name = program title + pid
bnoordhuis Nov 20, 2017
2fb6515
tools: use built-in padStart instead of padString
tniessen Nov 18, 2017
5aff3d2
tools: avoid using process.cwd in tools/lint-js
tniessen Nov 18, 2017
13b97e7
tools: remove useless function declaration
tniessen Nov 18, 2017
c5cd4f0
tools: make doc tool a bit more readable
tniessen Nov 18, 2017
33d04fd
inspector: no async tracking for promises
addaleax Nov 18, 2017
d106c02
doc: update AUTHORS list
targos Oct 28, 2017
c1e294e
test: remove unused parameter
xballoy Nov 21, 2017
475634b
test: remove unused parameter
fdescamps Nov 21, 2017
0b86469
test: remove unused variable
gflandre Nov 21, 2017
9a91cfc
test: remove unused variable
hexapode Nov 21, 2017
1053108
test: remove unused parameter
franher Nov 21, 2017
bf84ed0
benchmark: set maxHeaderListPairs in h2 headers.js
apapirovski Nov 21, 2017
e90c836
src: remove unprofessional slang in assertions
aqrln Nov 21, 2017
56c9069
test: remove unused parameter in test-next-tick-error-spin.js
FKSI Nov 21, 2017
096bd53
src: fix compiler warning
cjihrig Nov 21, 2017
c58c191
test: wrap callback in common.mustCall
suman-mitra Nov 21, 2017
69861cd
doc: add guybedford to collaborators
guybedford Nov 21, 2017
aab0a03
doc: update release table in V8 guide
ofrobots Nov 19, 2017
1ac3a44
doc: update mgol in AUTHORS.txt, add to .mailmap
mgol Nov 22, 2017
861082a
test: clean up inappropriate language
devsnek Nov 21, 2017
78a9aaa
src: add napi_handle_scope_mismatch to msg list
Nov 20, 2017
d328e06
test: use common.crashOnUnhandledRejection
madeinfree Nov 22, 2017
2aacb05
test: use crashOnUnhandledRejection
purepennons Nov 22, 2017
a213e51
test: use arrow function instead of bind
lance Nov 21, 2017
82393df
test: use common.crashOnUnhandledRejection
esbb48 Nov 22, 2017
9197f0c
test: use crashOnUnhandledRejection
roth1002 Nov 22, 2017
3d86f32
test: use common.crashOnUnhandledRejection
jimliu7434 Nov 22, 2017
7642577
test: fix linting error
jasnell Nov 22, 2017
a47b55d
test: use crashOnUnhandledRejection
imZack Nov 22, 2017
9226e67
test: add common.crashOnUnhandledRejection()
KyleYu Nov 22, 2017
53f9ce9
test: use common.crashOnUnhandledRejection()
IvanWei Nov 22, 2017
8441632
doc: use better terminology for build machines
addaleax Nov 19, 2017
3028fa7
test: dont need to remove nonexistent directory
ah-yu Nov 18, 2017
edfa62a
test: remove unlink function which is needless
ah-yu Nov 20, 2017
4369728
fs: use arrow functions instead of `.bind` and `self`
starkwang Nov 19, 2017
bf81c06
test,doc: document where common modules go
gibfahn Oct 8, 2017
ed9296d
doc: fs.readFile is async but not partitioned
davisjam Nov 20, 2017
cf52639
test: add common.crashOnUnhandledRejection()
Scya597 Nov 22, 2017
12073eb
test: use common.crashOnUnhandledRejection
zack9433 Nov 22, 2017
0b8c543
test: use common.crashOnUnhandledRejection
aryung Nov 22, 2017
5125e6c
test: add test on unhandled rejection
LarryLuTW Nov 22, 2017
dab1381
test: keep coverage reports after coverage-clean
apapirovski Sep 19, 2017
5d6fd0d
benchmark,path: remove unused variables
Oct 5, 2017
eb1f8c5
test: add crashonUnhandledRejection
Nov 22, 2017
c95ccfd
test: add common.crashOnHandleRejection
Jackyen Nov 22, 2017
474f857
test: use common.crashOnUnhandledRejection
Nov 22, 2017
8695511
test: use common.crashOnUnhandledRejection()
sorarize Nov 22, 2017
c1b02b9
tools/doc: add tools/remark-* to eslintignore
IvanWei Nov 22, 2017
fa6867d
test: use common.crashOnUnhandledRejection
Nov 22, 2017
dcab0de
doc: document resolve hook formats
azz Oct 22, 2017
cdb7d24
doc: add SharedArrayBuffer to Buffer documentation
ThomasdenH Sep 20, 2017
1ffa2f6
doc: update http URLs to https in CONTRIBUTING.md
him2him2 Nov 22, 2017
5ed2d3b
doc: update http URLs to https in GOVERNANCE.md
him2him2 Nov 22, 2017
f65fee0
doc: update http URLs to https in doc/api
him2him2 Nov 22, 2017
26500b7
doc: update http URLs to https in README.md
him2him2 Nov 22, 2017
23cfef1
doc: add maclover7 to collaborators
maclover7 Nov 24, 2017
88e6b59
n-api: use nullptr instead of NULL in node_api.cc
danbev Nov 23, 2017
ae5a870
doc: add ES Modules entry to who-to-cc
Trott Nov 22, 2017
10bf570
doc: fix typo in api doc of url.format(urlObject)
cxn-pkovacs Nov 25, 2017
e73c191
test: use common.crashOnUnhandledRejection
sj82516 Nov 23, 2017
11fd745
test: add common.crashOnUnhandledRejection()
w5151381guy Nov 22, 2017
8c8a2fd
test: use common.crashOnUnhandledRejection
Kcin1993 Nov 22, 2017
1fab8fa
test: use common.crashOnUnhandledRejection
yozian Nov 22, 2017
f19eab2
test: add test of stream Transform
kt3k Nov 26, 2017
d30502c
test: use Number.isNaN()
fossamagna Nov 26, 2017
8009513
doc: replace function with arrow function
Leko Nov 26, 2017
610164d
test: use arrow function
koooge Nov 26, 2017
6b99341
test: replace function with arrow function
Nov 26, 2017
5eb0c99
test: replace function with arrow function
karszawa Nov 26, 2017
77368fc
doc: replace function with arrow function in vm.md
narirou Nov 26, 2017
c5fdc53
doc: replace string with template string
Leko Nov 26, 2017
afe4c33
test: replace function with arrow function
Nov 26, 2017
cdab6ea
test: make use of Number.isNaN to test-readfloat.js
hiromoon Nov 26, 2017
5ac5663
test: fix isNAN->Number.isNAN
ykyz Nov 26, 2017
c2e3a10
build: remove empty VCLibrarianTool entry
danbev Nov 20, 2017
0d5075f
src: make base64.h self-contained
danbev Nov 21, 2017
51e660a
doc: caution against removing pseudoheaders
jasnell Nov 26, 2017
986e439
build: fix bsd build with gcc
Nov 4, 2017
e722ddd
doc: Add link for ECMAScript 2015
Nov 26, 2017
0b45b42
test: fix flaky parallel/test-http2-client-upload
addaleax Nov 27, 2017
3a9a5d8
doc: fix typo occuring -> occurring
Leko Nov 27, 2017
2d7e03f
http: do not assign intermediate variable
maclover7 Nov 27, 2017
4f0cdae
test: Update test-http-client-agent to use countdown timer
daxlab Nov 26, 2017
80d1671
test: Update test-http-parser-free to use countdown timer
daxlab Nov 26, 2017
91dfd90
build: add make lint-js-fix
joyeecheung Nov 24, 2017
4ebd75b
test: refactored http test to use countdown
mithunsasidharan Nov 22, 2017
af7d7a4
doc: move Code of Conduct to admin repo
MylesBorins Oct 23, 2017
a2c82c3
doc: non-partitioned async crypto operations
davisjam Nov 22, 2017
da40417
module: be lazy when creating CJS facades
bmeck Nov 20, 2017
f007426
tools: add lint fixer for `require-buffer`
Bamieh Nov 20, 2017
021d7df
test: Enable specifying flaky tests on fips
komawar Oct 16, 2017
28a0c10
tools,test: use Execute instead of check_output
refack Nov 29, 2017
97888e0
test: add es6 module global leakage tests
tinybeachthor Oct 17, 2017
f5a2cff
test: replace function with ES6 arrow function
kjunichi Nov 26, 2017
273bd7f
tools: update to ESLint 4.12.0
cjihrig Nov 26, 2017
281a330
module: fix for #17130 shared loader cjs dep
guybedford Nov 22, 2017
a20b774
doc: fix typo in stream.md
matthewleon Nov 27, 2017
f89efbc
test: remove common.tmpDirName
Trott Nov 22, 2017
b016cbb
test: fix flaky async-hooks/test-graph.signal
Trott Dec 6, 2017
8c2707b
doc: clarify fast-track of reversions
refack Nov 26, 2017
a6c7030
build: fix test-v8 target
targos Nov 23, 2017
a27df5d
test: replace function with arrow function
Leko Nov 27, 2017
4155216
doc: fix doc example for cctest
Nov 27, 2017
6789663
doc: add guide to maintaining npm
MylesBorins Oct 27, 2017
b1bfced
internal: add emitExperimentalWarning function
codeman869 Oct 25, 2017
dc24a78
tools: add Boxstarter script
bzoz Nov 14, 2017
ecb78e6
src: fix typo in NODE_OPTIONS whitelist
evanlucas Nov 28, 2017
77205b7
test: use v8 Default Allocator in cctest fixture
danbev Nov 28, 2017
dbae582
test: make CreateParams stack-allocated
danbev Nov 30, 2017
2af1bf5
doc,test: remove unnecessary await with return instances
Trott Nov 22, 2017
053eba0
tools: enable no-return-await lint rule
Trott Nov 22, 2017
9f73ce0
src: node_http2_state.h should not be executable
maclover7 Dec 1, 2017
88ae46d
doc: improve checkServerIdentity docs
Hannes-Magnusson-CK Nov 21, 2017
89c1959
doc: document tls.checkServerIdentity
Hannes-Magnusson-CK Nov 22, 2017
7d55374
test: refactored test-http-response-splitting to use countdown
mithunsasidharan Nov 27, 2017
dbcc378
test: update test/parallel/test-http-pipe-fs.js to use countdown
chungngoops Nov 27, 2017
50bd4b0
test: refactored test-http-allow-req-after-204-res to countdown
mithunsasidharan Nov 28, 2017
8f1db70
doc: be concise about serial commas
Trott Nov 29, 2017
ebcede3
doc: add missing serial commas
Trott Nov 29, 2017
80abd64
build,win: vcbuild refactoring call configure
refack Nov 25, 2017
073822f
doc: introduce categories to Cpp style guide
fhinkel Nov 17, 2017
9076c27
test: update test-http-status-reason-invalid-chars to use countdown
mithunsasidharan Nov 27, 2017
e6c5255
test: update test-http-upgrade-client to use countdown
mithunsasidharan Nov 27, 2017
11d44c6
test: make common.mustNotCall show file:linenumber
lance Nov 22, 2017
0813461
test: update test-http-timeout to use countdown
mithunsasidharan Dec 3, 2017
181db33
test: update test-http-response-multiheaders to use countdown
Dec 3, 2017
52e573d
test: use Countdown in http test
mithunsasidharan Dec 3, 2017
3bfe0e2
test: forbid `common.mustCall*()` in process exit handlers
Trott Dec 4, 2017
876966f
test: use common.mustCall in test-http-malformed-request
mithunsasidharan Dec 3, 2017
541062c
doc: update example in module registration
fhinkel Dec 4, 2017
babb288
test: replace assert.throws with common.expectsError
Leko Dec 4, 2017
0f6ce05
test: update test-http-request-dont-override-options to use common.mu…
mithunsasidharan Dec 3, 2017
d12d86e
test: fix flaky test-benchmark-events
Trott Dec 5, 2017
6dea0f8
test: add dgram benchmark test
jopann Oct 9, 2017
e4e1212
test: add more settings to test-benchmark-dgram
Trott Dec 5, 2017
e7ae8ae
doc: use colon consistently in assert.md
Trott Dec 5, 2017
3831e29
doc: improve punctuation in fs.open() text
Trott Dec 5, 2017
b26f9d6
doc: standardize preposition usage in fs.md
Trott Dec 5, 2017
77c2c1a
doc: edit module introduction
Trott Dec 5, 2017
ecbe2eb
doc: add serial comma in CPP_STYLE_GUIDE.md
Trott Dec 5, 2017
fa107dd
build: add serial commas to messages in configure script
Trott Dec 5, 2017
fadb297
doc: use serial comma in tls.md
Trott Dec 5, 2017
5b927b2
test: remove hidden use of common.PORT in parallel tests
Trott Dec 5, 2017
85ef429
doc: update AUTHORS list
targos Dec 4, 2017
f391d3c
test: refactor code to use common.mustCall
mithunsasidharan Dec 4, 2017
79f7564
test: add common.crashOnUnhandledRejection()
IHsuan Nov 22, 2017
4980517
doc: remove IPC channel implementation details
bzoz Dec 4, 2017
e515355
doc: remove unused link reference
apapirovski Dec 7, 2017
befb163
crypto: use SetNull instead of Set
danbev Dec 6, 2017
533cc5c
doc: fix typo in dns.md
Trott Dec 6, 2017
069fd23
doc: fix common typo involving one-time listeners
Trott Dec 6, 2017
d40c581
doc: fix typo in repl.md
Trott Dec 6, 2017
e0b6bc7
test: fix flaky test-benchmark-querystring
Trott Dec 7, 2017
d693dac
test: replace fs.accessSync with fs.existsSync
Leko Dec 4, 2017
cb7739d
util: remove check for global.process
devsnek Dec 3, 2017
4035686
doc: mention node-test-pull-request-lite job
maclover7 Dec 7, 2017
b54bc9c
test: update http test to use Countdown
onneri Dec 6, 2017
feb6de5
doc: add info on post-publishing ARM6 builds
mhdawson Dec 4, 2017
f9e0cb2
test: Use common.mustCall in http test
sreepurnajasti Dec 6, 2017
210d860
test: use Countdown in test-http-set-cookies
shilomagen Dec 6, 2017
964cebf
test: use Countdown in http-response-statuscode
daxlab Nov 26, 2017
ed13aac
test: use Number.isNaN instead of global isNaN
mithunsasidharan Dec 7, 2017
8d1a48a
doc: improve readability of COLLABORATOR_GUIDE.md
Trott Dec 7, 2017
947d3d2
doc: improve readability of README.md
Trott Dec 7, 2017
4658545
doc: improve text for Console constructor
Trott Dec 7, 2017
fd9c8b3
doc: immprove inode text in fs.md
Trott Dec 7, 2017
fdb216a
doc: add "Hello world" example for N-API
fhinkel Dec 2, 2017
ce060b7
test: use Countdown in http test
idandagan1 Dec 6, 2017
0c34bce
test: fix flaky test-benchmark-es
Trott Dec 7, 2017
94d9f20
src: fix missing handlescope bug in inspector
bnoordhuis Dec 7, 2017
889986a
doc: 'constructor' implies use of new keyword
CameronMoorehead Nov 28, 2017
9868ce5
tools: replace space with \b in regex
DiegoRBaquero Dec 6, 2017
c8220b9
test: update test-http-should-keep-alive to use countdown
tomeromrix Dec 6, 2017
b718e45
util: fix negative 0 check in inspect
devsnek Dec 6, 2017
d8eea81
test: improve assert messages in repl-reset-event
AdriVanHoudt Nov 6, 2017
88a4d04
crypto: do not reach into OpenSSL internals for ThrowCryptoError
davidben Nov 3, 2017
5e12a9c
doc: esm loader example with module.builtinModules
guybedford Nov 29, 2017
9c93b97
build: define HAVE_OPENSSL macro for cctest
Dec 4, 2017
32adb70
test: update http test to use common.mustCall
collin5 Dec 7, 2017
c544194
build: allow running configure from any directory
gibfahn Nov 26, 2017
fb33231
test: use Countdown in http-agent test
fedekau Dec 7, 2017
8e4cb1b
doc: simplify and clarify FIPS text in BUILDING.md
Trott Dec 7, 2017
9540c80
src: remove unused include node_crypto_clienthello
danbev Dec 8, 2017
042ae4a
doc: add link to debugger in process.md
Delapouite Dec 7, 2017
b726776
test: refactored to remove unnecessary variables
mithunsasidharan Dec 8, 2017
e93a6da
benchmark: fix http/simple.js benchmark
apapirovski Dec 9, 2017
329f3de
doc: fix modules.md export example
apapirovski Dec 9, 2017
a4ddb0c
test: refactor test-http-default-port
addaleax Dec 9, 2017
c1fd487
tools: simplify prefer-common-mustnotcall rule
cjihrig Dec 9, 2017
7f979a7
tools: simplify prefer-assert-methods rule
cjihrig Dec 9, 2017
4a10cf5
tools: simplify buffer-constructor rule
cjihrig Dec 9, 2017
4288b96
tools: simplify no-let-in-for-declaration rule
cjihrig Dec 9, 2017
c7891c4
test: refactor test-child-process-pass-fd
Trott Dec 10, 2017
0666968
test: remove common.fixturesDir from tests
Trott Dec 2, 2017
c6a6a7a
test: remove fixturesDir from common module
Trott Dec 2, 2017
8bab2db
doc: make error descriptions more concise
Trott Nov 9, 2017
fcb8b91
doc: add capitalization styling to STYLE_GUIDE
Trott Nov 18, 2017
d23df03
doc: prepare for v8/V8 linting in doc text
Trott Nov 19, 2017
f34ae26
doc: use "JavaScript" instead of "Javascript"
Trott Nov 19, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: refactor test-http-default-port
- Remove redundant `hasCrypto` checks
- Use `common.mustCall()`
- Use arrow functions
- Deduplicate HTTP & HTTPS code

PR-URL: #17562
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
  • Loading branch information
addaleax authored and gibfahn committed Dec 20, 2017

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit a4ddb0cf49812ed67b8fd5f465c8b3d31cd1cadb
55 changes: 14 additions & 41 deletions test/parallel/test-http-default-port.js
Original file line number Diff line number Diff line change
@@ -34,54 +34,27 @@ const options = {
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem')
};
let gotHttpsResp = false;
let gotHttpResp = false;

process.on('exit', function() {
if (common.hasCrypto) {
assert(gotHttpsResp);
}
assert(gotHttpResp);
console.log('ok');
});

http.createServer(function(req, res) {
assert.strictEqual(req.headers.host, hostExpect);
assert.strictEqual(req.headers['x-port'], this.address().port.toString());
res.writeHead(200);
res.end('ok');
this.close();
}).listen(0, function() {
http.globalAgent.defaultPort = this.address().port;
http.get({
host: 'localhost',
headers: {
'x-port': this.address().port
}
}, function(res) {
gotHttpResp = true;
res.resume();
});
});

if (common.hasCrypto) {
https.createServer(options, function(req, res) {
for (const { mod, createServer } of [
{ mod: http, createServer: http.createServer },
{ mod: https, createServer: https.createServer.bind(null, options) }
]) {
const server = createServer(common.mustCall((req, res) => {
assert.strictEqual(req.headers.host, hostExpect);
assert.strictEqual(req.headers['x-port'], this.address().port.toString());
assert.strictEqual(req.headers['x-port'], `${server.address().port}`);
res.writeHead(200);
res.end('ok');
this.close();
}).listen(0, function() {
https.globalAgent.defaultPort = this.address().port;
https.get({
server.close();
})).listen(0, common.mustCall(() => {
mod.globalAgent.defaultPort = server.address().port;
mod.get({
host: 'localhost',
rejectUnauthorized: false,
headers: {
'x-port': this.address().port
'x-port': server.address().port
}
}, function(res) {
gotHttpsResp = true;
}, common.mustCall((res) => {
res.resume();
});
});
}));
}));
}