Anna Henningsen
897114bf94
net: partially revert "simplify Socket.prototype._final"
...
Partially revert b7e6ccd0cc
because it broke a test that was added since its last CI run.
Refs: https://github.com/nodejs/node/pull/24075
Refs: https://github.com/nodejs/node/pull/23866
PR-URL: https://github.com/nodejs/node/pull/24288
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com >
2018-12-26 11:18:54 -05:00
Berry de Witte
704b68aee4
test: increase coverage internal readline
...
PR-URL: https://github.com/nodejs/node/pull/24150
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-12-26 11:18:54 -05:00
Anna Henningsen
10a27277ad
net: simplify Socket.prototype._final
...
Remove conditions that should be irrelevant since we started
using `_final`, as well as an extra `defaultTriggerAsyncIdScope()`
call which is unnecessary because there is an equivalent
scope already present on the native side.
PR-URL: https://github.com/nodejs/node/pull/24075
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-12-26 11:18:54 -05:00
Daniel Bevenius
d8ac55a012
test: use NULL instead of 0 in common.h
...
This commit updates the macros in test/addons-napi/common.h to use NULL
instead of 0. This is very minor, but I had to look twice while going
through the code and finding what the macro was doing and comparing
with the struct definition. Using NULL makes it a little clearer I
think.
PR-URL: https://github.com/nodejs/node/pull/24104
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-12-26 11:18:54 -05:00
Refael Ackermann
5dfc1bb46c
build,tools: update make-v8.sh for s390x
...
PR-URL: https://github.com/nodejs/node/pull/23839
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-12-26 11:18:53 -05:00
Paul Isache
3966b698f6
lib: combine contructor, tag, Object into a function
...
combine these parts into a function to be used in multiple parts
PR-URL: https://github.com/nodejs/node/pull/24171
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:53 -05:00
Marcus Scott
4b9518dba3
test: move test-fs-watch-system-limit from sequential to pummel
...
PR-URL: https://github.com/nodejs/node/pull/23692
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-12-26 11:18:53 -05:00
Rich Trott
b305db8634
doc: edit BUILDING.md
...
Minor edits to BUILDING.md to keep sentences short and clear.
PR-URL: https://github.com/nodejs/node/pull/24243
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2018-12-26 11:18:53 -05:00
ivan.filenko
4054c24cac
test: fix uses of deprecated assert.fail with multiple args
...
PR-URL: https://github.com/nodejs/node/pull/23673
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2018-12-26 11:18:53 -05:00
ivan.filenko
c417c7a89a
test: use assert.strictEqual instead of assert.equal
...
PR-URL: https://github.com/nodejs/node/pull/23673
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2018-12-26 11:18:53 -05:00
Nikita Malyschkin
1b5b1cc08b
test: add test for strictDeepEqual
...
PR-URL: https://github.com/nodejs/node/pull/24197
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2018-12-26 11:18:52 -05:00
Amer Alimanović
cd2dedfa4f
test: add coverage for systemerror set name
...
PR-URL: https://github.com/nodejs/node/pull/24200
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:52 -05:00
Alex Seifert
9fa71468f5
test: fix order of arguments in assert.strictEqual
...
PR-URL: https://github.com/nodejs/node/pull/24145
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:52 -05:00
Anna Henningsen
a1d7ed7de6
tracing: fix static destruction order issue
...
Sometimes, the `parallel/test-tracing-no-crash` would not work as
expected, at least on Windows, because there is a static destruction
race between tearing down the `NodeTraceWriter` instance and the
per-process options struct. If the per-process options were destroyed
before the `NodeTraceWriter`, the reference to the tracing filename
would be gone before opening the file was attempted.
This can be solved by creating a copy of the string when creating the
`NodeTraceWriter` instance rather than taking a reference.
Fixes: https://github.com/nodejs/node/issues/22523
PR-URL: https://github.com/nodejs/node/pull/24123
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2018-12-26 11:18:52 -05:00
Grant Carthew
abe3edad48
doc: fix code examples in stream.md
...
* Replace `console.error()` with `console.log()`.
* Fix case and punctuation in logged output.
PR-URL: https://github.com/nodejs/node/pull/24112
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
2018-12-26 11:18:52 -05:00
razvanbh
2d6e942035
test: add test for 'ERR_INVALID_CALLBACK'
...
PR-URL: https://github.com/nodejs/node/pull/24224
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:52 -05:00
Artur Daschevici
540b741ae2
test: add coverage for escape key switch case
...
PR-URL: https://github.com/nodejs/node/pull/24194
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:51 -05:00
Daniel Bevenius
53b12c3731
test: fix NewFromUtf8 compiler warning
...
Currently there are a number of compiler warnings like the following:
../binding.cc:6:41:
warning: 'NewFromUtf8' is deprecated:
Use maybe version [-Wdeprecated-declarations]
args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world"));
^
/node/deps/v8/include/v8.h:2883:10:
note: 'NewFromUtf8' has been explicitly marked deprecated here
static V8_DEPRECATE_SOON(
^
/node/deps/v8/include/v8config.h:341:29:
note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
This commit updates the code to use the maybe versions.
PR-URL: https://github.com/nodejs/node/pull/24216
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:51 -05:00
alyssaq
9a69d030ce
src: reuse std::make_unique
...
Ref: https://github.com/nodejs/node/commit/283a967e356311a467113eea450a81827d43c969
PR-URL: https://github.com/nodejs/node/pull/24132
Refs: https://github.com/nodejs/node/commit/283a967e356311a467113eea450a81827d43c969
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com >
2018-12-26 11:18:51 -05:00
Sam Roberts
31441f42c4
doc: describe what tls servername is for
...
Docs should describe the purpose of the option.
PR-URL: https://github.com/nodejs/node/pull/24236
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:51 -05:00
Joyee Cheung
0c206e0d6d
benchmark: support more options in startup benchmark
...
1. Add options to benchmark the startup performance of a node
"instance" after running a script. By default there are two options:
`test/fixtures/semicolon` which is basically an empty file,
and `benchmark/fixtures/require-cachable` which require all
the cachable modules before exiting. This allows us to measure
the overhead of bootstrap in more scenarios.
2. Add options to benchmark the overhead of spinning
node through a process and through a worker.
PR-URL: https://github.com/nodejs/node/pull/24220
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2018-12-26 11:18:51 -05:00
Joyee Cheung
8c107a37f9
url: make the context non-enumerable
...
At the moment we expose the context as a normal property on the
prototype chain of URL or take them from the base URL
which makes them enumerable and considered
by assert libraries even though the context carries path-dependent
information that do not affect the equivalence of these objects.
This patch fixes it in a minimal manner by marking the context
non-enumerable as making it full private would require more
refactoring and can be done in a bigger patch later.
PR-URL: https://github.com/nodejs/node/pull/24218
Refs: https://github.com/nodejs/node/issues/24211
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2018-12-26 11:18:51 -05:00
Mark Arranz
8e9ff69d7f
test: add error code tests in dgram test
...
Improve error validation in test-dgram-send-bad-arguments.
PR-URL: https://github.com/nodejs/node/pull/24215
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:50 -05:00
reineke-fox
e57a5c3734
test: fix order of arguments in test-delayed-require assertion
...
Fix order of arguments in equality assertion in
test-delayed-require.
PR-URL: https://github.com/nodejs/node/pull/24165
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:50 -05:00
Brian White
9a64ceca39
buffer: fix writeUInt16BE range check
...
Fixes: https://github.com/nodejs/node/issues/24205
PR-URL: https://github.com/nodejs/node/pull/24208
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2018-12-26 11:18:50 -05:00
Paul Isache
d7a3a3bd9f
test: change arguments order in strictEqual
...
Fix actual/expected ordering in test-net-eaddrinuse.
PR-URL: https://github.com/nodejs/node/pull/24156
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:50 -05:00
Jonah Polack
efd697bc57
test: switch order of strictEqual arguments
...
PR-URL: https://github.com/nodejs/node/pull/24185
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:50 -05:00
Sam Roberts
cc688bb23f
doc: fix some inconsistent use of hostname
...
host names are DNS names, host addresses are IP addresses, and `host`
arguments and options can be either.
PR-URL: https://github.com/nodejs/node/pull/24199
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:50 -05:00
mzucker
9052a22dd1
test: fix the arguments order in assert.strictEqual
...
This change was initiated from the NodeConfEU session.
PR-URL: https://github.com/nodejs/node/pull/24227
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:49 -05:00
mzucker
d7722dd9d8
test: fix the arguments order in assert.strictEqual
...
This change was initiated from the NodeConfEU session.
PR-URL: https://github.com/nodejs/node/pull/24226
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:49 -05:00
Kevin Seidel
2e0d3c9de9
test: fix order in assert.strictEqual to actual, expected
...
PR-URL: https://github.com/nodejs/node/pull/24184
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2018-12-26 11:18:49 -05:00
szabolcsit
b63e9cb3fe
test: fix arguments order in assert.strictEqual
...
In the test test/parallel/test-http-client-upload.js test the
actual and expected arguments in assert.strictEqual() calls
were in the wrong order. Switched them around so the returned
value by the function is the first argument and the literal
value is the second argument.
PR-URL: https://github.com/nodejs/node/pull/24143
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:49 -05:00
Manish Poddar
e0c6f5cbf7
test: fix assert argument order
...
PR-URL: https://github.com/nodejs/node/pull/24160
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:49 -05:00
Jackson Chui
fc84ccd0f0
test: removed extraneous argument 's'
...
PR-URL: https://github.com/nodejs/node/pull/24213
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:49 -05:00
razvanbh
90f98905f1
test: fix arguments order in test-fs-write-buffer
...
PR-URL: https://github.com/nodejs/node/pull/24155
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:48 -05:00
Clement
1588fba73f
test: fix argument order in assert.strictEqual()
...
PR-URL: https://github.com/nodejs/node/pull/24147
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:48 -05:00
Mathieu Pavageau
f46fa9072a
test: switch arguments in strictEqual
...
In the `test/parallel/test-vm-create-and-run-in-context.js`
test the actual and expected arguments in the `assert.strictEqual()`
call on line 32 are in the wrong order and they have to be switched
around.
PR-URL: https://github.com/nodejs/node/pull/24141
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:48 -05:00
Simona Cotin
8f2bdaca69
test: fix arguments order
...
the actual and expected arguments in assert.strictEqual() calls are in
the wrong order. Any literal value should be the second argument while
the first argument should be the value returned by a function/be the
calculated value.
PR-URL: https://github.com/nodejs/node/pull/24151
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:48 -05:00
Marc Posth
380789eb68
test: fixe argument order in assert.strictEqual
...
File: test/parallel/test-http-client-upload-buf.js
PR-URL: https://github.com/nodejs/node/pull/24140
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:48 -05:00
G. Carcaci
cd07b02472
test: fixing arguments order in assert.strictEqual()
...
PR-URL: https://github.com/nodejs/node/pull/24152
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:48 -05:00
Robin Drexler and ZauberNerd
6e8fa5361a
test: add tests for OutgoingMessage setTimeout
...
These tests ensure that OutgoingMessage setTimeout method
will call setTimeout on its socket
Co-authored-by: ZauberNerd <zaubernerd@zaubernerd.de >
PR-URL: https://github.com/nodejs/node/pull/24148
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:48 -05:00
Florin-Daniel BÎLBÎE
abf9bd15db
test: swap expected and actual in assert.strictEqual
...
PR-URL: https://github.com/nodejs/node/pull/24146
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:47 -05:00
Roland Broekema
f0eee63ee0
test: fix assert parameter order
...
Switched arguments in assert.strictEqual()
PR-URL: https://github.com/nodejs/node/pull/24144
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2018-12-26 11:18:47 -05:00
Remy Parzinski
78a320130d
test: change order of assert.strictEqual()
...
PR-URL: https://github.com/nodejs/node/pull/24142
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-12-26 11:18:47 -05:00
Morgan Roderick
64fd19f102
test: fix invalid argument order in test-http-expect-continue.js
...
`assert.strictEqual` expects arguments in the following order:
actual, expected[, message]
PR-URL: https://github.com/nodejs/node/pull/24138
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2018-12-26 11:18:47 -05:00
Ahmad Nassri
2d88af354f
test: strictEqual argument order (actual, expected)
...
PR-URL: https://github.com/nodejs/node/pull/24137
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2018-12-26 11:18:47 -05:00
Musa Hamwala
11a84a7b32
test: swap the order of arguments
...
Swapped the actual and expected arguments in `assert.strictEqual()`
calls. Arguments are now in correct order.
Literal value is now the second argument and the value returned by the
function is the first argument.
PR-URL: https://github.com/nodejs/node/pull/24134
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: George Adams <george.adams@uk.ibm.com >
2018-12-26 11:18:47 -05:00
Petar Dodev
e599889649
test: fs readfile, swap arguments in strictEqual
...
PR-URL: https://github.com/nodejs/node/pull/24133
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2018-12-26 11:18:46 -05:00
Jimb Esser
04f8d6bffd
child_process: allow 'http_parser' monkey patching again
...
Lazy load _http_common and HTTPParser so that the 'http_parser' binding
can be monkey patched before any internal modules require it. This also
probably improves startup performance minimally for programs that never
require the HTTP stack.
Fixes: https://github.com/nodejs/node/issues/23716
Fixes: https://github.com/creationix/http-parser-js/issues/57
PR-URL: https://github.com/nodejs/node/pull/24006
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-12-26 11:18:46 -05:00
Fran Herrero
c37b3196b6
test: fix arguments order
...
PR-URL: https://github.com/nodejs/node/pull/24131
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2018-12-26 11:18:46 -05:00