Dmitry Tsvettsikh
3f02b47b8a
tty: avoid oob warning in TTYWrap::GetWindowSize()
...
PR-URL: https://github.com/nodejs/node/pull/11454
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-02-22 20:20:04 +01:00
Fedor Indutny
a1802e670d
tls: do not crash on STARTTLS when OCSP requested
...
`TLSSocket` should not have a hard dependency on `tls.Server`, since it
may be running without it in cases like `STARTTLS`.
Fix : #10704
PR-URL: https://github.com/nodejs/node/pull/10706
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 09:36:02 -08:00
James M Snell
62e96096fa
lib: more consistent use of module.exports = {} model
...
Switch to using the more efficient module.exports = {}
where possible.
PR-URL: https://github.com/nodejs/node/pull/11406
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-22 08:56:08 -08:00
James M Snell
88c3f57cc3
lib: refactor internal/socket_list
...
PR-URL: https://github.com/nodejs/node/pull/11406
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-22 08:56:01 -08:00
James M Snell
f04387e9f2
lib: refactor internal/freelist
...
PR-URL: https://github.com/nodejs/node/pull/11406
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-22 08:55:56 -08:00
James M Snell
d61a511728
lib: refactor internal/linkedlist
...
PR-URL: https://github.com/nodejs/node/pull/11406
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-22 08:55:50 -08:00
Michaël Zasso
ca48071919
test: make test-intl-no-icu-data more robust
...
In V8 5.6, String#toLocaleUpperCase can work even when no ICU data is
loaded. Use another method to check the --icu-data-dir option pointing
to an empty directory.
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 15:57:37 +01:00
Michaël Zasso
7c0c7baff3
deps: fix gyp configuration for v8-inspector
...
Cross-compiled builds need different toolsets.
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 15:57:33 +01:00
Michaël Zasso
00a2aa0af5
deps: fix gyp build configuration for Windows
...
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 15:57:25 +01:00
Ali Ijaz Sheikh
b30ec59855
deps: switch to v8_inspector in V8
...
* Delete deps/v8_inspector
* Start building v8_inspector from V8
* Remove licenses related to the deleted code from LICENSE file
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 15:56:58 +01:00
Michael Dawson
3c53ad0df9
deps: limit regress/regress-crbug-514081 v8 test
...
regress/regress-crbug-514081 allocates a 2G block of memory
and if there are multiple variants running at the
same time this can lead to crashes, OOM kills or
the OS failing to allocate memory. This patch
limits us to running a single variant of the test
Fixes: https://github.com/nodejs/node/issues/6340
PR-URL: https://github.com/nodejs/node/pull/6678
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2017-02-22 15:56:46 +01:00
Michaël Zasso
aae8f683b4
src: update NODE_MODULE_VERSION to 53
...
V8 5.6 is not API/ABI compatible with 5.5.
This commit increments NODE_MODULE_VERSION by one.
Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 15:56:33 +01:00
Michaël Zasso
7a77daf243
deps: update V8 to 5.6.326.55
...
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 15:55:42 +01:00
Dean Coakley
5f08871ee9
doc: change STYLE-GUIDE to STYLE_GUIDE
...
PR-URL: https://github.com/nodejs/node/pull/11460
Fixes: https://github.com/nodejs/node/issues/11456
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-02-22 06:11:06 +00:00
Sakthipriyan Vairamani (thefourtheye)
dce37dc35b
lib: remove unnecessary assignments with _extend
...
The first parameter to `util._extend` is the target object. Assigning
the target object to the result of `util._extend` is not necessary.
PR-URL: https://github.com/nodejs/node/pull/11364
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2017-02-22 10:35:25 +05:30
Italo A. Casas
2b5d83d4df
2017-02-21, Version 7.6.0 (Current)
...
Notable changes:
* deps:
* update V8 to 5.5 (Michaël Zasso) [#11029 ](https://github.com/nodejs/node/pull/11029 )
* upgrade libuv to 1.11.0 (cjihrig) [#11094 ](https://github.com/nodejs/node/pull/11094 )
* add node-inspect 1.10.4 (Jan Krems) [#10187 ](https://github.com/nodejs/node/pull/10187 )
* upgrade zlib to 1.2.11 (Sam Roberts) [#10980 ](https://github.com/nodejs/node/pull/10980 )
* lib: build `node inspect` into `node` (Anna Henningsen) [#10187 ](https://github.com/nodejs/node/pull/10187 )
* crypto: Remove expired certs from CNNIC whitelist (Shigeki Ohtsu) [#9469 ](https://github.com/nodejs/node/pull/9469 )
* inspector: add --inspect-brk (Josh Gavant) [#11149 ](https://github.com/nodejs/node/pull/11149 )
* fs: allow WHATWG URL objects as paths (James M Snell) [#10739 ](https://github.com/nodejs/node/pull/10739 )
* src: support UTF-8 in compiled-in JS source files (Ben Noordhuis) [#11129 ](https://github.com/nodejs/node/pull/11129 )
* url: extend url.format to support WHATWG URL (James M Snell) [#10857 ](https://github.com/nodejs/node/pull/10857 )
PR-URL: https://github.com/nodejs/node/pull/11185
2017-02-21 21:38:53 -05:00
Myles Borins
aecb0859e5
2017-02-21, Version 6.10.0 'Boron' (LTS)
...
Notable Changes:
The SEMVER-MINOR changes include:
* crypto: allow adding extra certs to well-known CAs (Sam Roberts)
https://github.com/nodejs/node/pull/9139
* deps: Upgrade INTL ICU to version 58 (Steven R. Loomis)
https://github.com/nodejs/node/pull/9234
* process: add `process.memoryUsage.external` (Fedor Indutny)
https://github.com/nodejs/node/pull/9587
* src: add wrapper for process.emitWarning() (Sam Roberts)
https://github.com/nodejs/node/pull/9139
Notable SEMVER-PATCH changes include:
* fs: cache non-symlinks in realpathSync. (Jeremy Yallop)
https://github.com/nodejs/node/pull/10253
* repl: allow autocompletion for scoped packages (Evan Lucas)
https://github.com/nodejs/node/pull/10296
PR-URL: https://github.com/nodejs/node/pull/10974
2017-02-21 21:10:39 -05:00
Myles Borins
49c5ff4408
2017-02-21, Version 4.8.0 'Argon' (LTS)
...
Notable Changes:
* child_process: add shell option to spawn() (cjihrig)
https://github.com/nodejs/node/pull/4598
* crypto:
* add ALPN Support (Shigeki Ohtsu)
https://github.com/nodejs/node/pull/2564
* allow adding extra certs to well-known CAs (Sam Roberts)
https://github.com/nodejs/node/pull/9139
* deps:
* v8: expose statistics about heap spaces (Ben Ripkens)
https://github.com/nodejs/node/pull/4463
* fs: add the fs.mkdtemp() function. (Florian MARGAINE)
https://github.com/nodejs/node/pull/5333
* process:
* add `externalMemory` to `process` (Fedor Indutny)
https://github.com/nodejs/node/pull/9587
* add process.cpuUsage() (Patrick Mueller)
https://github.com/nodejs/node/pull/10796
PR-URL: https://github.com/nodejs/node/pull/10973
2017-02-21 20:45:47 -05:00
Vse Mozhet Byt
1162e284ca
benchmark: add dgram bind(+/- params) benchmark
...
Refs: https://github.com/nodejs/node/pull/11242
PR-URL: https://github.com/nodejs/node/pull/11313
Reviewed-By: Brian White <mscdex@mscdex.net >
2017-02-21 18:27:11 +01:00
Anna Henningsen
c969047d62
console: fixup console.dir() error handling
...
Apply the `console: do not emit error events` changes properly
to `console.dir()`.
This was overlooked in f18e08d820
(https://github.com/nodejs/node/pull/9744 ).
Ref: https://github.com/nodejs/node/commit/f18e08d820dde161788d95a5603546ceca021e90#commitcomment-20934407
PR-URL: https://github.com/nodejs/node/pull/11443
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-21 16:50:58 +01:00
Michaël Zasso
193468667b
tools: enable one-var-declaration-per-line ESLint rule
...
This rule enforces new lines around variable declarations. It is
configured to spot only variables that are initialized.
PR-URL: https://github.com/nodejs/node/pull/11462
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-02-21 12:53:19 +01:00
Tarang Hirani
a4c3e31ac7
test: add regex check to test-module-loading
...
Also removes extraneous argument.
PR-URL: https://github.com/nodejs/node/pull/11413
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
2017-02-21 09:09:53 +00:00
DavidCai
88035bc60d
doc: restrict the ES.Next features usage in tests
...
PR-URL: https://github.com/nodejs/node/pull/11452
Refs: https://github.com/nodejs/node/pull/11290
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-21 11:33:52 +08:00
Joyee Cheung
84ee957800
test: remove redundant additional url tests
...
url-tests-additional.js now is a placeholder since existing test cases
have been upstreamed. This is now a temporary place for test cases
not upstreamed yet.
Refs: https://github.com/w3c/web-platform-tests/pull/4693
PR-URL: https://github.com/nodejs/node/pull/11439
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-21 11:10:45 +08:00
Joyee Cheung
ef4b95ae78
test: synchronize WPT url test data
...
Synchronize url-tests to upstream b207902 and
comment out incompatible tests
PR-URL: https://github.com/nodejs/node/pull/11439
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-21 11:06:24 +08:00
Joyee Cheung
795e4fd66d
test: remove WHATWG URL test data file extension
...
Make url-tests a js file so we can comment out
incompatible tests
PR-URL: https://github.com/nodejs/node/pull/11439
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-21 11:04:58 +08:00
Brian White
3e6f1032a4
http: add new functions to OutgoingMessage
...
PR-URL: https://github.com/nodejs/node/pull/10805
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-02-20 16:50:43 -05:00
QianJin2013
52ddb41c60
doc: add comment for net.Server's error event
...
Fixes: https://github.com/nodejs/node/issues/9710
PR-URL: https://github.com/nodejs/node/pull/11136
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-02-20 13:40:21 -08:00
Vse Mozhet Byt
52b253677a
doc: fix sorting in API references
...
PR-URL: https://github.com/nodejs/node/pull/11331
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-02-20 13:11:11 -08:00
Sam Roberts
dfa8abe1b5
deps: upgrade zlib to 1.2.11
...
PR-URL: https://github.com/nodejs/node/pull/10980
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
2017-02-20 08:45:48 -08:00
Sam Roberts
4e6efc1dec
tls: new tls.TLSSocket() supports sec ctx options
...
Add support to new tls.TLSSocket() to create a SecureContext object with
all its supported options, in the same way they are supported for all
the other APIs that need SecureContext objects.
Fix: https://github.com/nodejs/node/issues/10538
PR-URL: https://github.com/nodejs/node/pull/11005
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-20 08:01:07 -08:00
Sam Roberts
bd947def9b
test: make tls-socket-default-options tests run
...
Because of a poorly constructed test, only one of the two test vectors
ran. The test also failed to cover the authentication error that occurs
when the server's certificate is not trusted.
Both issues are fixed.
Fix: https://github.com/nodejs/node/issues/10538
PR-URL: https://github.com/nodejs/node/pull/11005
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-20 08:01:07 -08:00
Sam Roberts
d2de2ad846
doc: add version meta for SSL_CERT_DIR/FILE
...
The metadata markup for when SSL_CERT_DIR and SSL_CERT_FILE added in
33012e9866 is missing.
PR-URL: https://github.com/nodejs/node/pull/11007
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-20 07:31:44 -08:00
James M Snell
d523eb9c40
tls: use emitWarning() for dhparam < 2048 bits
...
When a dhparam less than 2048 bits was used, a warning was being
printed directly to console.error using an internalUtil.trace
function that was not used anywhere else. This replaces it with
a proper process warning and removes the internalUtil.trace
function.
PR-URL: https://github.com/nodejs/node/pull/11447
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Rod Vagg <rod@vagg.org >
2017-02-20 06:59:30 -08:00
James M Snell
051047231e
util: cleanup internalUtil.deprecate
...
There were two functions `deprecate` and `_deprecate`
that were really just aliases of each other. Simplify
PR-URL: https://github.com/nodejs/node/pull/11450
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-02-19 15:06:39 -08:00
Eric Christie
fcf3cbed28
test: improve coverage in test-crypto.dh
...
PR-URL: https://github.com/nodejs/node/pull/11253
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-19 12:59:00 -08:00
Ali Ijaz Sheikh
389b9e484d
cluster: properly handle --inspect-{brk,port}
...
PR-URL: https://github.com/nodejs/node/pull/11386
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Josh Gavant <josh.gavant@outlook.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-19 12:55:36 -08:00
Rich Trott
c090ca8160
test: add error checking in callback
...
Add assert.ifError() for test-dgram-send-callback-buffer-length.
PR-URL: https://github.com/nodejs/node/pull/11446
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-02-19 12:53:25 -08:00
Arseniy Maximov
66476889ff
test: refactor test-http-response-splitting
...
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
are not callbacks
* add error message checking
PR-URL: https://github.com/nodejs/node/pull/11429
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com >
2017-02-19 12:51:55 -08:00
Daijiro Wachi
1b31ca6cca
test: test bottom-up merge sort in URLSearchParams
...
The bottom-up iterative stable merge sort is called only when
the length of provided value is larger than 100. Added a test for it.
PR-URL: https://github.com/nodejs/node/pull/11399
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-19 12:43:03 -08:00
Yuta Hiroto
e18ebe8354
test: add test cases for path
...
Add test cases for the following line.
https://github.com/nodejs/node/blob/0f2f8ef/lib/path.js#L1364
https://github.com/nodejs/node/blob/0f2f8ef/lib/path.js#L1347
PR-URL: https://github.com/nodejs/node/pull/11453
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-19 12:40:57 -08:00
Daijiro Wachi
02acea92d2
test: add cases for unescape & unescapeBuffer
...
These two functions in the querystring are used as a fallback.
To test them, two test cases were added which make errors that
will be caught.
PR-URL: https://github.com/nodejs/node/pull/11326
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-02-19 12:39:20 -08:00
Rich Trott
7b76f822a0
test: enhance test-common.js
...
* refactor test-common.js so that global leak detection does not need to
be disabled
* add test for common.fail()
PR-URL: https://github.com/nodejs/node/pull/11433
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-19 12:36:26 -08:00
James M Snell
bc44d2c3cd
util, debugger: remove internalUtil.error
...
The internalUtil.error() function was only used by _debugger.js.
PR-URL: https://github.com/nodejs/node/pull/11448
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-02-19 12:33:19 -08:00
James M Snell
b855dadae0
util: eliminate unnecessary exports
...
The getHiddenValue and setHiddenValue functions
are exported from internalUtil for no really good
reason
PR-URL: https://github.com/nodejs/node/pull/11451
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-02-19 12:15:21 -08:00
Ali Ijaz Sheikh
751404dc28
test: fix over-dependence on native promise impl
...
In later versions of V8, the stack trace will be different than our
current expectations for Promise methods.
PR-URL: https://github.com/nodejs/node/pull/11437
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-19 10:18:33 +01:00
Yang Guo
99b75fae10
src: remove usage of deprecated debug API
...
Debug::GetMirror is used in contextify to force loading of the debug
context. There is a better way to achieve this.
PR-URL: https://github.com/nodejs/node/pull/11437
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-19 10:17:55 +01:00
Arseniy Maximov
8fc362ea98
child_process: refactor internal/child_process.js
...
* Prefer === to == where possible
* Remove condition that will always be false
* Prefer for-loop statements to forEach where possible for perfomance reasons
PR-URL: https://github.com/nodejs/node/pull/11366
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2017-02-18 19:59:37 +01:00
Arseniy Maximov
ca37ec084a
test: use expectsError in test-debug-agent.js
...
Use common.expectsError() in place of inline validation function in
test-debug-agent.js.
PR-URL: https://github.com/nodejs/node/pull/11410
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-18 16:18:57 +01:00
xiaoyu
48f8869685
test: add coverage for utf8CheckIncomplete()
...
This commit adds code coverage to utf8CheckIncomplete(), when the
lastNeed is greater than buffer length.
PR-URL: https://github.com/nodejs/node/pull/11419
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-18 16:04:09 +01:00