Chi-chi Wang
ae0a00c8d4
test: use common.fixtures module
...
Use common.fixtures module in test-https-agent-session-eviction
PR-URL: https://github.com/nodejs/node/pull/16012
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:31:45 -07:00
Bradley Farias
4ed78e267a
doc: ensure collaborators validate commits
...
This should be done every time a collaborator pushes a commit.
PR-URL: https://github.com/nodejs/node/pull/16162
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2017-10-17 23:31:41 -07:00
Bartosz Sosnowski
e3ac7b14b7
test: escape script filename on Windows
...
Escape backslashes in script filename on Windows in a CLI test.
PR-URL: https://github.com/nodejs/node/pull/16124
Fixes: https://github.com/nodejs/node/issues/16057 and #16023
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:31:38 -07:00
Anna Henningsen
e8f59f755b
src: rename StreamWrap to LibuvStreamWrap
...
This should help clarify what kind of resource a `StreamWrap`
represents.
PR-URL: https://github.com/nodejs/node/pull/16157
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-10-17 23:31:35 -07:00
shaohui.liu2000@gmail.com
f7c087040d
test: replace common.fixtureDir with fixtures
...
PR-URL: https://github.com/nodejs/node/pull/15816
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:31:32 -07:00
shaohui.liu2000@gmail.com
81f16a988b
test: add env to failure message
...
PR-URL: https://github.com/nodejs/node/pull/15816
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:31:29 -07:00
Mabry Cervin
26ca2ae266
test: improve assert message in test-dh-regr
...
PR-URL: https://github.com/nodejs/node/pull/15912
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:31:27 -07:00
Eric Freiberg
6abb1f44f6
test: fixtures in test-net-pipe-connect-errors
...
PR-URL: https://github.com/nodejs/node/pull/15922
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:29:54 -07:00
Kat Rosario
969c87e456
test: fixtures in test-process-redirect-warnings-env
...
Replaced common.fixturesDir with common.fixtures in
test-process-redirect-warnings-env
PR-URL: https://github.com/nodejs/node/pull/15930
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:29:50 -07:00
Chad Zezula
8e2064f093
test: fix ordering of strictEqual actual/expected
...
Change all assert.strictEqual() to have actual value 1st
and expected value 2nd.
PR-URL: https://github.com/nodejs/node/pull/16008
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-10-17 23:29:46 -07:00
Rich Trott
04b6ae6648
doc: move 8 collaborators to emeriti
...
As discussed in TSC email, I contacted 8 Collaborators whose last
activity appears to be quite some time ago to suggest that they be moved
to emeritus status until such a time as they will be active again. There
were no objections from the 8 Collaborators or the TSC.
PR-URL: https://github.com/nodejs/node/pull/16173
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2017-10-17 23:29:43 -07:00
Matthew Meyer
b054a4e138
test: use fixtures.path instead of fixturesDir
...
Updated parallel/test-require-resolve.js to use the fixtures module.
PR-URL: https://github.com/nodejs/node/pull/15984
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2017-10-17 23:29:39 -07:00
Rich Trott
68bfde9fb9
test: fix test-esm-addons
...
Move test-esm-addons to test/addons/hello-world-esm.
Test should now work properly on CI machines where `addons` are not
always built at the expected relative path from the es-modules tests.
Test should now work in Debug builds.
PR-URL: https://github.com/nodejs/node/pull/16174
Fixes: https://github.com/nodejs/node/issues/16155
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2017-10-17 23:29:36 -07:00
Gibson Fahnestock
d09e489ec9
doc: include V8 commit URL in V8 backport guide
...
Use `Commit:` for the V8 commit, and `PR-URL:` for the Node PR URL.
Refs: https://github.com/nodejs/node/pull/16053#issuecomment-334868621
PR-URL: https://github.com/nodejs/node/pull/16054
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:29:32 -07:00
szhang351
562d445999
test: use fixtures.readSync
...
PR-URL: https://github.com/nodejs/node/pull/15841/
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:29:28 -07:00
Dolapo Toki
1469eff8f6
test: replaced fixturesDir with common.fixtures
...
PR-URL: https://github.com/nodejs/node/pull/15836
Reviewed-By: Lance Ball <lball@redhat.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:29:24 -07:00
Gene Wu
b463259efb
test: use fixtures.fixturesDir
...
PR-URL: https://github.com/nodejs/node/pull/15822
Reviewed-By: Lance Ball <lball@redhat.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
2017-10-17 23:29:21 -07:00
Christian Murphy
1e0a55529f
test: replaces fixturesDir with fixtures methods
...
PR-URL: https://github.com/nodejs/node/pull/15817
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 23:29:17 -07:00
Cristian Peñarrieta
6f6b2cb7b7
test: replace fixturesDir with fixtures methods
...
PR-URL: https://github.com/nodejs/node/pull/15833
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 23:29:14 -07:00
Gabriel Schulhof
8e7ca5db8d
n-api,test: use module name macro
...
test_constructor_name.c should use NODE_GYP_MODULE_NAME.
PR-URL: https://github.com/nodejs/node/pull/16146
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2017-10-17 23:29:10 -07:00
Tom Boutell
0418a4170b
test: update test-https-server-keep-alive-timeout
...
PR-URL: https://github.com/nodejs/node/pull/15805
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 23:29:06 -07:00
Nicolas Chaulet
1cfff97a2b
test: fixtures in test-process-redirect-warnings
...
In test/parallel/test-process-redirect-warning.js replace usage of
common.fixture by common.fixturesDir
PR-URL: https://github.com/nodejs/node/pull/15917
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:29:03 -07:00
Raj Parekh
ba2261a450
test: update test-crypto-from-binary
...
removed string literal argument to function call strictEqual
so that default error message is printed
PR-URL: https://github.com/nodejs/node/pull/16011
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:29:00 -07:00
kysnm
abfb6b1262
test: fixtures in test-http2-respond-file-fd-range
...
PR-URL: https://github.com/nodejs/node/pull/15878
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 23:28:56 -07:00
Bob Clewell
db92df9f67
test: use fixtures in test-https-set-timeout-server
...
Task to replace the common.fixturesDir with the usage
of the common.fixtures module. At Node.js Interactive.
First PR to Node.js. Yay!
PR-URL: https://github.com/nodejs/node/pull/15886
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:53 -07:00
Jem Bezooyen
529e6851d9
test: make use of common/fixtures.fixturesDir
...
The common/fixtures module provides convenience methods for working with
files in the test/fixtures directory. Make use of the `fixturesDir`
value from module rather than value from common.
- Replace `common.fixtures` with `fixtures.fixturesDir`
PR-URL: https://github.com/nodejs/node/pull/15815
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:49 -07:00
Alberto Lopez de Lara
7339620466
test: use common/fixtures in test-https-close
...
PR-URL: https://github.com/nodejs/node/pull/15870
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:28:46 -07:00
Suresh Srinivas
7a210cd467
test: use fixtures in test-process-warnings
...
PR-URL: https://github.com/nodejs/node/pull/15869
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 23:28:42 -07:00
Rich Trott
6f64a4456f
benchmark: remove writing to benchmark directory
...
A benchmark for module loading creates a temporary directory in the
benchmark directory. Re-use the test common module to put the tmp
directory in test instead. This was causing intermittent test failures
because run.js (invoked by benchmark tests, mulitple of which could be
running at once) throws if a subdirectory of benchmark disappears at
just the wrong time.
There are other possible solutions than repurposing the `test/common`
module but two arguments for doing it this way are:
* There is already another benchmark file that does this
(`http_server_for_chunky_client.js`) so the dependency already exists
in the benchmarks.
* This also eliminates a re-implementation of rimraf in the benchmark
code.
PR-URL: https://github.com/nodejs/node/pull/16144
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:38 -07:00
Kai Cataldo
94a76162ef
tools: replace string concat
...
PR-URL: https://github.com/nodejs/node/pull/15850
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:28:34 -07:00
tobyfarley
56cf077e0e
test: use fixtures in tls-friendly-error-message
...
PR-URL: https://github.com/nodejs/node/pull/15905
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:30 -07:00
Ethan Arrowood
f1b4e7c001
test: add benchmark tests for es
...
Added parallel test benchmark for es
PR-URL: https://github.com/nodejs/node/pull/16076
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:26 -07:00
Rich Trott
80539d83d2
doc: add parentheses to refreshTmpDir()
...
`common.refreshTmpDir()` is a function. Add parentheses to make that
explicit. Also copy edit the descriptive sentence.
PR-URL: https://github.com/nodejs/node/pull/16168
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:21 -07:00
Donovan Buck
68b59eaaf0
test: use common/fixtures in tls-connect-no-host
...
PR-URL: https://github.com/nodejs/node/pull/15986
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:17 -07:00
jpaulptr
36fa169e01
test: use common/fixtures in test-https-agent
...
PR-URL: https://github.com/nodejs/node/pull/15941
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:28:14 -07:00
Kat Rosario
7a18e6441e
test: use common fixtures module
...
Replace use of fixturesDir with fixtures.readSync and fixtures.path.
PR-URL: https://github.com/nodejs/node/pull/15856
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:28:09 -07:00
Lewis Zhang
a45ac4f77d
doc: fix changelog anchor to v8.7.0
...
PR-URL: https://github.com/nodejs/node/pull/16165
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:28:05 -07:00
F. Hinkelmann
2b4f3bb39e
doc: add pronoun for fhinkel
...
PR-URL: https://github.com/nodejs/node/pull/16069
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2017-10-17 23:28:01 -07:00
Ethan Brown
08fa0040a7
test: fs.readFileSync -> fixtures.readKey
...
PR-URL: https://github.com/nodejs/node/pull/16030
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:27:57 -07:00
Rich Trott
268ce8cad4
test: reduce test-benchmark-http iterations
...
Supply `type=asc` option in test-benchmark-http to reduce runs in all
benchmark files to one combination of options.
PR-URL: https://github.com/nodejs/node/pull/16137
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:27:53 -07:00
Rich Trott
9808c59b4e
test: reduce run time for misc benchmark tests
...
Run only one benchmark for each benchmark file tested by
test-benchmark-misc.js.
PR-URL: https://github.com/nodejs/node/pull/16120
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2017-10-17 23:27:48 -07:00
ekulnivek
b0b224c823
http2: replace fixturesDir with common.fixtures
...
PR-URL: https://github.com/nodejs/node/pull/15839
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 23:27:44 -07:00
Refael Ackermann
ce2eeb9a0b
build: restore mistakenly dropped suites
...
suites dropped during the last commit by a typo
restore $(CI_JS_SUITES) to test-ci-js
restore $(CI_NATIVE_SUITES) for `test-ci`
and var assignment tweak
PR-URL: https://github.com/nodejs/node/pull/16132
Fixes: https://github.com/nodejs/node/issues/16129
Fixes: https://github.com/nodejs/build/issues/910
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Benjamin E. Coe <ben@npmjs.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-10-17 23:27:39 -07:00
Tim Ermilov
4fdb9f5024
doc: document windows shell support
...
explain that Git Bash and Cygwin require winpty to work correctly.
Added info on Git Bash running winpty automatically
when running node without .exe extension.
PR-URL: https://github.com/nodejs/node/pull/16104
Fixes: https://github.com/nodejs/node/issues/14100
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 23:27:35 -07:00
Bradley Farias
7307e1d2cd
src: add internalBindings for binding isolation
...
This commit adds a method to internal/process that allows access to
bindings that are not intended to be used by user code. It has a
separate cache object and modlist in order to avoid collisions.
You can use NODE_MODULE_CONTEXT_AWARE_INTERNAL to register a C++
module as an internal.
PR-URL: https://github.com/nodejs/node/pull/15759
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2017-10-17 23:27:32 -07:00
Anna Henningsen
c8db0230c9
src: use more appropriate context-entered check
...
Make the context check in `MakeCallback` match what the comment says
(and what actually makes sense).
PR-URL: https://github.com/nodejs/node/pull/15691
Fixes: https://github.com/nodejs/node/issues/15672
Ref: https://github.com/nodejs/node/pull/15428
Ref: f27b5e4bda
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2017-10-17 23:27:28 -07:00
Anna Henningsen
419876aabb
src: fixup node_platform blocking task drain
...
https://github.com/nodejs/node/pull/15428 was supposed to account
for upcoming changes in V8 upstream, but while addressing review
comments a bug was introduced; `DrainBackgroundTasks()` should
always at least perform one blocking drain on the background task
queue.
PR-URL: https://github.com/nodejs/node/pull/15639
Refs: https://github.com/nodejs/node/pull/15428
Refs: f27b5e4bda
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-10-17 23:27:25 -07:00
Anna Henningsen
33d5262c23
src: prepare platform for upstream V8 changes
...
V8 platform tasks may schedule other tasks (both background and
foreground), and may perform asynchronous operations like
resolving Promises.
To address that:
- Run the task queue drain call inside a callback scope.
This makes sure asynchronous operations inside it, like
resolving promises, lead to the microtask queue and any
subsequent operations not being silently forgotten.
- Move the task queue drain call before `EmitBeforeExit()`
and only run `EmitBeforeExit()` if there is no new event
loop work.
- Account for possible new foreground tasks scheduled by
background tasks in `DrainBackgroundTasks()`.
PR-URL: https://github.com/nodejs/node/pull/15428
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Matthew Loring <mattloring@google.com >
2017-10-17 23:27:21 -07:00
Shakeel Mohamed
5f0686ab07
test: improve assertion message in dgram test
...
PR-URL: https://github.com/nodejs/node/pull/16121
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-10-17 23:27:18 -07:00
Adarsh Honawad
6670b35f23
doc: remove undefined reference variable
...
Remove undefined reference variable 'common' from http2 API
PR-URL: https://github.com/nodejs/node/pull/16106
Fixes: https://github.com/nodejs/node/issues/16068
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 23:27:14 -07:00