Anna Henningsen
e7b656db6e
Revert "repl: disable Ctrl+C support on win32 for now"
...
This reverts commit f59b8888f1
now that the libuv update containing the proper fix has
landed in 63243bcb33 .
Ref: https://github.com/libuv/libuv/pull/1054
Ref: https://github.com/nodejs/node/issues/7837
PR-URL: https://github.com/nodejs/node/pull/8645
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-01-27 08:11:45 -05:00
Ben Noordhuis
6e8d627217
lib,src: support values > 4GB in heap statistics
...
We were transporting the heap statistics as uint32 values to JS land but
those wrap around for values > 4 GB. Use 64 bits floats instead, those
should last us a while.
Fixes: https://github.com/nodejs/node/issues/10185
PR-URL: https://github.com/nodejs/node/pull/10186
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2017-01-27 08:11:44 -05:00
Rich Trott
9916ee8c36
test: refactor test-https-truncate
...
* use common.mustCall() where appropriate
* Buffer.allocUnsafe() -> Buffer.alloc()
* do crypto check before loading any additional modules
* specify 1ms duration for `setTimeout()`
PR-URL: https://github.com/nodejs/node/pull/10225
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-01-27 08:11:44 -05:00
René Schünemann
94c4323d56
async_wrap: close the destroy_ids_idle_handle_
...
The destroy_ids_idle_handle_ needs to be closed on
environment destruction. Not closing the handle leaves
a dangling pointer in the used uv loop. This leads to
undefined behavior when the uv loop is used after the
environment has been destroyed.
PR-URL: https://github.com/nodejs/node/pull/10385
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:44 -05:00
Vse Mozhet Byt
1253650cf4
doc: update examples in api/crypto.md
...
* var -> const / let in crypto.md
* fix error in crypto.md code example
* equal -> strictEqual, == -> === in crypto.md
* update estimated outputs in crypto.md
* snake_case -> camelCase in crypto.md examples
* concatenation -> multiline template in crypto
* add missing line break in crypto code example
* add missing link reference in crypto.md
PR-URL: https://github.com/nodejs/node/pull/10909
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:44 -05:00
Evan Lucas
3177d6557a
doc: move topics/guides to website
...
This commit removes the topics and guides that the documentation
working group has proposed added to the website. We want them to have
more visibility and believe that moving them to the website does that.
Ref: https://github.com/nodejs/nodejs.org/pull/1105
Fixes: https://github.com/nodejs/node/issues/10792
PR-URL: https://github.com/nodejs/node/pull/10896
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-01-27 08:11:43 -05:00
Noah Rose Ledesma
d2896d92a7
doc: update AUTHORS list to fix name
...
Changed authors listing from `Noah Rose` to `Noah Rose Ledesma`.
PR-URL: https://github.com/nodejs/node/pull/10945
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:43 -05:00
Timothy Gu
4ffcefdc09
doc: add TimothyGu to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/10954
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-01-27 08:11:43 -05:00
Anna Henningsen
3fcf0aed4a
doc: mention moderation repo in onboarding doc
...
PR-URL: https://github.com/nodejs/node/pull/10869
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2017-01-27 08:11:43 -05:00
Adrian Estrada
79d8db0fef
doc: add edsadr to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/10883
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
2017-01-27 08:11:42 -05:00
Jessica Quynh Tran
520b1f7853
doc: clarifying variables in fs.write()
...
This commit clarifies variables in the Filesystem docs.
Prior, the documentation for fs.write() had an ambiguous
remark on the parameters of offset and length.
Therefore, this commit makes explicit that the length parameter
in fs.write() is used to denote the number of bytes, which is
a clearer reference for its usage.
PR-URL: https://github.com/nodejs/node/pull/9792
Ref: https://github.com/nodejs/node/issues/7868
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-01-27 08:11:42 -05:00
Anna Henningsen
daf1bf588b
doc: add links for zlib convenience methods
...
Add links to the engine classes for the zlib single-call
convenience methods.
PR-URL: https://github.com/nodejs/node/pull/10829
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:42 -05:00
Anna Henningsen
aeaf887700
doc: fix markdown escaping in CHANGELOG_V7.md
...
PR-URL: https://github.com/nodejs/node/pull/10827
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:42 -05:00
Anna Henningsen
c8b0fc6d8b
doc: remove duplicate PR link from changelog
...
This contained a duplicate link to the PR for a notable change,
presumably because that PR was composed of 2 separate commits.
PR-URL: https://github.com/nodejs/node/pull/10827
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:41 -05:00
Anna Henningsen
049258b062
doc: fixup added tags in cli.md
...
PR-URL: https://github.com/nodejs/node/pull/10826
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:41 -05:00
Anna Henningsen
61798d1fa4
doc: add missing added: tag for zlib.constants
...
PR-URL: https://github.com/nodejs/node/pull/10826
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:41 -05:00
Zach Bjornson
73939ec701
doc: clarify memory sharing behavior of buffer ctor
...
* Clarify that memory is always shared and never copied.
* Fix wording that sounded like ArrayBuffer has a buffer property.
PR-URL: https://github.com/nodejs/node/pull/10778
Ref: https://github.com/nodejs/node/issues/10770
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:41 -05:00
Anna Henningsen
f8b081b519
doc: fix broken internal link in process.md
...
PR-URL: https://github.com/nodejs/node/pull/10828
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:40 -05:00
Nathan Phillip Brink
a53f881f57
doc: update writable.write return value
...
Fix the explanation which stated that write() would return false if
highWaterMark is exceeded to correctly state that false is returned
once highWaterMark is reached. See #9247 .
PR-URL: https://github.com/nodejs/node/pull/10582
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2017-01-27 08:11:40 -05:00
Sam Roberts
6e1a3d1e57
doc: use correct tls certificate property name
...
Docs referred to an `issuer` property being optionally present, when it
should have referred to the `issuerCertificate` property.
PR-URL: https://github.com/nodejs/node/pull/10389
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-27 08:11:40 -05:00
Rich Trott
23edfe00b3
doc: edit writing-tests.md
...
* Remove passive voice
* Remove unneeded modifiers
* Minor comma change
PR-URL: https://github.com/nodejs/node/pull/10585
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2017-01-27 08:11:40 -05:00
Alexey Orlenko
9b73a8524f
doc: fix misleading language in vm docs
...
The note following the http.Server example in the vm documentation
contains misleading language. This commit removes the incorrect
reference to threads.
Fixes: https://github.com/nodejs/node/issues/10697
PR-URL: https://github.com/nodejs/node/pull/10708
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:40 -05:00
Anna Henningsen
56ea7eb9a7
doc: mention cc-ing nodejs/url team for reviews
...
Add the nodejs/url github team to the table of people to /cc for
reviews on the WHATWG URL code.
PR-URL: https://github.com/nodejs/node/pull/10652
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
2017-01-27 08:11:39 -05:00
Sam Roberts
66b34eac2f
doc: sort require statements in tests
...
PR-URL: https://github.com/nodejs/node/pull/10616
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: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com >
2017-01-27 08:11:39 -05:00
Matteo Collina
238466bcf0
doc: handle backpressure when write() return false
...
The doc specified that writable.write() was advisory only. However,
ignoring that value might lead to memory leaks. This PR specifies that
behavior. Moreover, it adds an example on how to listen for the 'drain'
event correctly.
See: https://github.com/nodejs/node/commit/f347dad0b7b1787092cca88789b77eb3def2d319
PR-URL: https://github.com/nodejs/node/pull/10631
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-01-27 08:11:39 -05:00
Rich Trott
ec226a2a3b
doc: add test naming information to guide
...
The guide for writing tests is missing information on how tests are
named. This adds that information.
There is also some copy-editing done on the first paragraph of the
guide.
PR-URL: https://github.com/nodejs/node/pull/10584
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-01-27 08:11:39 -05:00
Johannes Rieken
b73e98bf48
doc: fix missing negation in stream.md
...
Changing `..can result in expected` to `..can result in unexpected`
Fixes: https://github.com/nodejs/node/issues/10710
PR-URL: https://github.com/nodejs/node/pull/10712
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-01-27 08:11:38 -05:00
Myles Borins
bf95b074cd
doc: "s/git apply/git am -3" in V8 guide
...
git apply does not preserve the original commit message. These updated
instructions offer a simpler flow for backporting.
PR-URL: https://github.com/nodejs/node/pull/10665
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Michal Zasso <targos@protonmail.com >
2017-01-27 08:11:38 -05:00
Evan Lucas
9c89b2f704
doc: update LTS info for current releases
...
The COLLABORATOR_GUIDE was still listing v0.10 and v0.12 as LTS when
they are EOL now.
PR-URL: https://github.com/nodejs/node/pull/10720
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-27 08:11:38 -05:00
Jonathan Boarman
3f1775707e
doc: correct vcbuild options for windows testing
...
Corrected parameter for running tests on Windows. Without the corrected
parameters, Windows users encounter an error about failing to sign the
build, "Failed to sign exe", which can be discouraging to new Windows
community members.
PR-URL: https://github.com/nodejs/node/pull/10686
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com >
2017-01-27 08:11:38 -05:00
Sakthipriyan Vairamani (thefourtheye)
8314d9ee73
doc: killSignal option accepts integer values
...
`killSignal` option accepts the signal name or signal number as well.
PR-URL: https://github.com/nodejs/node/pull/10424
Reviewed-By: Julian Duque <julianduquej@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-01-27 08:11:37 -05:00
Lukasz Gasior
736a7f3dd3
doc: update BUILDING.md
...
Added a note about Visual Studio 2015 feature which should
be installed for building Node.js source code.
PR-URL: https://github.com/nodejs/node/pull/10669
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2017-01-27 08:11:37 -05:00
Gibson Fahnestock
f81bd48818
doc: document use of Refs: for references
...
Standardise on Refs:
PR-URL: https://github.com/nodejs/node/pull/10670
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-01-27 08:11:37 -05:00
Sam Roberts
b70dde0050
doc: new TLSSocket has no secure context options
...
Unlike all the other tls APIs, if any secure context configuration is
required, the caller is responsible for creating the context.
Corrects a doc regression introduced in caa7fa982a .
PR-URL: https://github.com/nodejs/node/pull/10545
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-01-27 08:11:37 -05:00
Vse Mozhet Byt
d3628d9e47
doc: modernize child_process example code
...
1. equal => strictEqual.
2. let => const for the variable that is not reassigned.
3. fix spaces.
4. stringify erroneous raw buffer outputs.
5. fix a typo.
PR-URL: https://github.com/nodejs/node/pull/10102
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2017-01-27 08:11:36 -05:00
Rich Trott
3270d4c89b
doc: clarify information about ABI version
...
PR-URL: https://github.com/nodejs/node/pull/10419
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Refs: https://github.com/nodejs/node/pull/9901#discussion_r93575704
2017-01-27 08:11:36 -05:00
Brian White
4ff1d3107f
test: add http.ClientRequest defaults test
...
PR-URL: https://github.com/nodejs/node/pull/10654
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2017-01-18 22:05:27 -05:00
Brian White
be24cc0187
benchmark: add ClientRequest creation benchmark
...
PR-URL: https://github.com/nodejs/node/pull/10654
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2017-01-18 22:05:27 -05:00
Brian White
5059b76cbc
http: misc ClientRequest cleanup
...
PR-URL: https://github.com/nodejs/node/pull/10654
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2017-01-18 22:05:26 -05:00
Brian White
44c0e4f1ad
http: avoid duplicate isArray()
...
PR-URL: https://github.com/nodejs/node/pull/10654
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2017-01-18 22:05:26 -05:00
Brian White
e7859c217f
http: optimize default method case
...
PR-URL: https://github.com/nodejs/node/pull/10654
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2017-01-18 22:05:25 -05:00
Brian White
c9bff043c7
http: optimize short path validation
...
PR-URL: https://github.com/nodejs/node/pull/10654
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2017-01-18 21:56:38 -05:00
Michaël Zasso
aa6b9f979e
deps: cherry-pick baba152 from V8 upstream
...
Original commit message:
fix stepping out of across throwing.
R=jgruber@chromium.org
BUG=v8:5559
Review-Url: https://codereview.chromium.org/2445233004
Cr-Commit-Position: refs/heads/master@{#40549}
PR-URL: https://github.com/nodejs/node/pull/10688
Fixes: https://github.com/nodejs/node/issues/9175
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com >
2017-01-17 13:35:57 +01:00
Roman Reiss
61f6f1260d
src/doc: improve man page and --help
...
- add missing environment variables to --help
- add missing flags to man page
- sort environment variables alphabetically
- add some highlighting to the man page
- remove stops from descriptions in --help for consistency
- few other minor tweaks to --help
PR-URL: https://github.com/nodejs/node/pull/10157
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2017-01-16 23:56:04 +01:00
ishell@chromium.org
5887396150
deps: cherry-pick a814b8a from upstream V8
...
Original commit message:
Merged: [heap] Clear recorded slots for inobject properties when migrating fast object to slow mode.
Revision: a814b8aeaf2b56635054c96435972dce90576f62
BUG=chromium:666046
LOG=N
NOTRY=true
NOPRESUBMIT=true
NOTREECHECKS=true
R=ulan@chromium.org
Review URL: https://codereview.chromium.org/2549803002 .
Cr-Commit-Position: refs/branch-heads/5.5@{#60}
Cr-Branched-From: 3cbd5838bd8376103daa45d69dade929ee4e0092-refs/heads/5.5.372@{#1}
Cr-Branched-From: b3c8b0ce2c9af0528837d8309625118d4096553b-refs/heads/master@{#40015}
PR-URL: https://github.com/nodejs/node/pull/10733
Reviewed-By: Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: mhdawson - Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-13 09:28:39 -08:00
Evan Lucas
e07b6516d7
Working on v7.4.1
...
PR-URL: https://github.com/nodejs/node/pull/10589
2017-01-04 12:35:18 -06:00
Evan Lucas
4760abcdd9
2017-01-04, Version 7.4.0 (Current)
...
Notable changes:
* buffer:
- Improve performance of Buffer allocation by ~11% (Brian White) https://github.com/nodejs/node/pull/10443
- Improve performance of Buffer.from() by ~50% (Brian White) https://github.com/nodejs/node/pull/10443
* events: Improve performance of EventEmitter.once() by ~27% (Brian White) https://github.com/nodejs/node/pull/10445
* fs: Allow passing Uint8Array to fs methods where Buffers are supported. (Anna Henningsen) https://github.com/nodejs/node/pull/10382
* http: Improve performance of http server by ~7% (Brian White) https://github.com/nodejs/node/pull/6533
* npm: Upgrade to v4.0.5 (Kat Marchán) https://github.com/nodejs/node/pull/10330
PR-URL: https://github.com/nodejs/node/pull/10589
v7.4.0
2017-01-04 11:15:09 -06:00
Joyee Cheung
022c743693
benchmark: allow benchmarks to specify flags
...
* Give createBenchmark and the Benchmark constructor
a third argument for specifying the command line flags
that this benchmark should be run with.
The benchmarks are no longer run with --expose-internals
by default, they will need to explicitly pass the flags.
* Rename options to configs in createBenchmark and the Benchmark
constructor to match the documentation since they are not optional.
* Comment the properties of a Benchmark object
Also improve the documentation about creating benchmarks
* Add detailed description of the arguments of `createBenchmark`
* Describe the two passes of running the benchmarks
* Suggest what kind of code should go where in the benchmark example
PR-URL: https://github.com/nodejs/node/pull/10448
Reviewed-By: Andreas Madsen <amwebdk@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2017-01-04 11:03:19 -06:00
Benedikt Meurer
66a9f013ac
events: optimize arrayClone by copying forward
...
Optimize arrayClone by copying forward.
It's slightly faster (and more readable) to copy array elements
in forward direction. This way it also avoids the ToBoolean and
the postfix count operation.
PR-URL: https://github.com/nodejs/node/pull/10571
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2017-01-04 11:03:19 -06:00
AnnaMag
dcc20f12a6
doc: clarify the statement in vm.createContext()
...
PR-URL: https://github.com/nodejs/node/pull/10519
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2017-01-04 10:51:50 -06:00