Ali Ijaz Sheikh
bfff07b4dd
contextify: cleanup weak ref for sandbox
...
Simplify how node_contextify was keeping a weak reference to the
sandbox object in order to prepare for new style phantom weakness V8
API. It is simpler (and more robust) for the context to hold a
reference to the sandbox in an embedder data field. Doing otherwise
meant that the sandbox could become weak while the context was still
alive. This wasn't a problem because we would make the reference
strong at that point.
Since the sandbox must live at least as long as the context, it
would be better for the context to hold onto the sandbox.
PR-URL: https://github.com/nodejs/node/pull/5392
Reviewed-By: Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-16 13:03:23 +11:00
Ali Ijaz Sheikh
93f60cdc54
contextify: cleanup weak ref for global proxy
...
Cleanup how node_contextify keeps weak references in order to prepare
for new style phantom weakness API. We didn't need to keep a weak
reference to the context's global proxy, as the context holds it.
PR-URL: https://github.com/nodejs/node/pull/5392
Reviewed-By: Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-16 13:03:00 +11:00
Kári Tristan Helgason
f3e9daa825
doc: add clarification on birthtime in fs stat
...
Clarifies the possibility of birthtime in the fs stat
object being greater than atime or mtime when not available
in the filesystem (see issue for further info).
Fixes: https://github.com/nodejs/node/issues/2222
PR-URL: https://github.com/nodejs/node/pull/5479
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-14 17:52:05 +11:00
Johan Bergström
c379ec6522
doc: move build instructions to a new document
...
This makes README.md easier to consume and likely less
confusing for people that get it as part of a binary download.
PR-URL: https://github.com/nodejs/node/pull/5634
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-14 17:52:05 +11:00
Wyatt Preul
d5d64c327b
collaborator_guide: clarify commit message rules
...
Italicize the full URL being required in metadata.
PR-URL: https://github.com/nodejs/node/pull/5661
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James Snell <jasnell@gmail.com >
2016-03-14 17:52:04 +11:00
Vaibhav
2a442b3dfc
doc: update removeListener behaviour
...
This commit updates events doc to describe removeListener behaviour
when it is called within a listener. An example is added to make
it more evident.
A test is also incuded to make this behaviour consistent in future
releases.
Fixes : nodejs/node#4759
PR-URL: https://github.com/nodejs/node/pull/5201
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2016-03-14 17:52:04 +11:00
Benjamin Gruenbaum
f6ee0996e0
doc: fix typo in child_process docs
...
Fixes a typo in the child process docs.
Fixes: https://github.com/nodejs/nodejs.org/issues/573
PR-URL: https://github.com/nodejs/node/pull/5681
Reviewed-By: thefourtheye <thechargingvolcano@gmail.com >
2016-03-14 17:52:03 +11:00
Robert C Jensen
dd12661173
doc: include typo in 'unhandledRejection' example
...
Reintroduces an intentional typo in a process doc example.
Fixes: https://github.com/nodejs/node/issues/5644
PR-URL: https://github.com/nodejs/node/pull/5654
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-03-14 17:52:03 +11:00
cjihrig
9a44c8c337
test: add batch of known issue tests
...
This commit adds tests for several known issues.
Refs: https://github.com/nodejs/node/issues/1901
Refs: https://github.com/nodejs/node/issues/728
Refs: https://github.com/nodejs/node/issues/4778
Refs: https://github.com/nodejs/node/issues/947
Refs: https://github.com/nodejs/node/issues/2734
PR-URL: https://github.com/nodejs/node/pull/5653
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-03-14 17:52:02 +11:00
Glen Keane
f7aecd6e94
doc: add thekemkid to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/5667
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-03-14 17:52:02 +11:00
Phillip Johnsen
b81711acfb
doc: add phillipj to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/5663
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Jeremy Whitlock <jwhitlock@apache.org >
2016-03-14 17:52:01 +11:00
Claudio Rodriguez
a33f2486f0
doc: add fansworld-claudio to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/5668
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-03-14 17:52:01 +11:00
Andreas Madsen
285d5e7ba6
doc: add AndreasMadsen to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/5666
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Glen Keane <glenkeane.94@gmail.com >
2016-03-14 17:52:01 +11:00
Benjamin Gruenbaum
8e1f6706e3
doc: add benjamingr to collaborator list
...
Add benjamingr to collaborator list.
Related https://github.com/nodejs/node/issues/5064
PR-URL: https://github.com/nodejs/node/pull/5664
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-03-14 17:52:00 +11:00
Jeremy Whitlock
f7842cbb24
doc: add whitlockjc to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/5665
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-03-14 17:52:00 +11:00
Matt Loring
dd6f4ec2e4
doc: add mattloring to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/5662
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-03-14 17:51:59 +11:00
João Reis
0b545fb3f8
win,build: support Visual C++ Build Tools 2015
...
Invoke MSBuild specifying the target platform as generated by Gyp.
Reviewed-By: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/5627
2016-03-14 17:51:59 +11:00
Myles Borins
4c1fdaeb2a
docs: update link to iojs+release ci job
...
We recently sandboxed the release CI jobs to their own Jenkins instance
This commit updates the links found in `doc/releases.md` to point
people in the right direction.
PR-URL: https://github.com/nodejs/node/pull/5632
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-14 17:51:58 +11:00
Nathan Woltman
205bed0bec
lib: copy arguments object instead of leaking it
...
Instead of leaking the arguments object by passing it as an
argument to a function, copy it's contents to a new array,
then pass the array. This allows V8 to optimize the function
that contains this code, improving performance.
PR-URL: https://github.com/nodejs/node/pull/4361
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-03-14 17:51:58 +11:00
Steve Mao
9ebd559a55
doc: fix markdown links
...
Fixes: https://github.com/nodejs/node/issues/5322
PR-URL: https://github.com/nodejs/node/pull/5641
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-14 17:51:57 +11:00
axvm
62d267e1ff
doc: fix dns.resolveCname description typo
...
PR-URL: https://github.com/nodejs/node/pull/5622
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-14 17:51:57 +11:00
Johan Bergström
03b99bf8b9
build: don't install github templates
...
Avoid putting github templates in the source tarballs.
PR-URL: https://github.com/nodejs/node/pull/5612
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-03-14 17:51:56 +11:00
Jeremiah Senkpiel
9f8e2e2979
doc: update release tweet template
...
PR-URL: https://github.com/nodejs/node/pull/5628
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-14 17:51:56 +11:00
James M Snell
532d1bf9ce
deps: sync deps/http_parser with nodejs/http_parser
...
The upstream and dep were slightly out of sync due to the way the
recent security update had to be done. This brings the two back
into sync. This update includes a couple of fixed tests and a
performance related semver-patch update to the http method parsing.
PR-URL: https://github.com/nodejs/node/pull/5600
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
2016-03-14 17:51:55 +11:00
Rich Trott
a7819da15a
Revert "build: run lint before tests"
...
This reverts commit d9f7a597e4 .
Changes here probably need wider discussion so revert the change until
that can happen.
PR-URL: https://github.com/nodejs/node/pull/5602
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-03-14 17:51:55 +11:00
Jeremiah Senkpiel
4d6fe300fe
doc: fix v5.8.0 changelog heading
...
PR-URL: https://github.com/nodejs/node/pull/5559
2016-03-09 10:55:54 -05:00
Jeremiah Senkpiel
816557065d
Working on v5.8.1
...
PR-URL: https://github.com/nodejs/node/pull/5559
2016-03-08 18:03:24 -05:00
Jeremiah Senkpiel
fc13773aab
2016-03-08, Version 5.8.0 (Stable)
...
Notable changes:
* child_process: “send()” now accepts an options parameter (cjihrig)
https://github.com/nodejs/node/pull/5283
- Currently the only option is “keepOpen”, which keeps the underlying
socket open after the message is sent.
* constants: “ENGINE_METHOD_RSA” is now correctly exposed (Sam Roberts)
https://github.com/nodejs/node/pull/5463
* Fixed two regressions which originated in v5.7.0:
- http: Errors inside of http client callbacks now propagate
correctly (Trevor Norris) https://github.com/nodejs/node/pull/5591
- path: Fixed normalization of absolute paths (Evan Lucas)
https://github.com/nodejs/node/pull/5589
* repl: “start()” no longer requires an options parameter (cjihrig)
https://github.com/nodejs/node/pull/5388
* util: Improved “format()” performance 50-300% (Evan Lucas)
https://github.com/nodejs/node/pull/5360
PR-URL: https://github.com/nodejs/node/pull/5559
v5.8.0
2016-03-08 18:00:00 -05:00
Trevor Norris
5e6d706758
src,http: fix uncaughtException miss in http
...
In AsyncWrap::MakeCallback always return empty handle if there is an
error. In the future this should change to return a v8::MaybeLocal, but
that major change will have to wait for v6.x, and these changes are
meant to be backported to v4.x.
The HTTParser call to AsyncWrap::MakeCallback failed because it expected
a thrown call to return an empty handle.
In node::MakeCallback return an empty handle if the call is
in_makecallback(), otherwise return v8::Undefined() as usual to preserve
backwards compatibility.
Fixes: https://github.com/nodejs/node/issues/5555
PR-URL: https://github.com/nodejs/node/pull/5591
Reviewed-By: Julien Gilli <jgilli@nodejs.org >
2016-03-08 15:57:16 -05:00
Kat Marchán
85013456cd
deps: upgrade to npm 3.7.3
...
PR-URL: https://github.com/nodejs/node/pull/5369
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Conflicts:
deps/npm/node_modules/request/node_modules/aws4/LICENSE
2016-03-08 15:57:04 -05:00
Myles Borins
9dc94d7b09
test: add test-npm-install to parallel tests suite
...
Currently we are not testing that `npm install` works.
This is a very naive / basic test that shells out to `npm install`
in an empty `tempDir`. While this test will not be able to check
that `npm install` is 100% working, it should catch certain edge
cases that break it.
PR-URL: https://github.com/nodejs/node/pull/5166
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org >
2016-03-08 15:55:07 -05:00
Michael Barrett
3c92352c8c
doc: document directories in test directory
...
PR-URL: https://github.com/nodejs/node/pull/5557
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-03-08 15:55:06 -05:00
Evan Lucas
f3971f5817
path: fix normalize for absolutes
...
Fixes a regression introduced by
b212be08f6 .
path.normalize(''/a/b/c/../../../x/y/z'') should return '/x/y/z'.
Fixes: https://github.com/nodejs/node/issues/5585
PR-URL: https://github.com/nodejs/node/pull/5589
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-03-08 15:55:06 -05:00
Sequoia McDowell
7be726f86a
doc: add info to docs on how to submit docs patch
...
The docs mentioned that the docs source live in
the node source, but did not link to same.
PR-URL: https://github.com/nodejs/node/pull/4591
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-08 15:55:05 -05:00
Rich Trott
4f20f31b3e
test: remove broken debugger scenarios
...
`test-debug-break-on-uncaught` was hanging on the domain and parse error
scenarios. These tests are not run in CI and may have been broken
for a very long time.
Refs: https://github.com/nodejs/node/issues/3156
Refs: https://github.com/nodejs/node/commit/c16963b9
PR-URL: https://github.com/nodejs/node/pull/5532
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rod Vagg <r@va.gg >
2016-03-08 15:55:04 -05:00
Sakthipriyan Vairamani
048c0f4738
tools: reduce verbosity of cpplint
...
Every time `make test` is run, the cpplint prints the file it
successfully linted. None of the other linters in the project does
that. This patch simply removes the "Done processing" message from the
cpplint.
PR-URL: https://github.com/nodejs/node/pull/5578
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-08 15:55:04 -05:00
Rich Trott
7965c897e0
tools: enable no-self-assign ESLint rule
...
Enabled no-self-assign rule in ESLint.
This required one change in a benchmark file. Changed a loop (that is
outside of the benchmark itself, so performance is not critical) from a
for loop that repeats a string to use String.prototype.repeat() instead.
While at it, took the opportunity to const-ify the benchmark file.
Also moved the "Strict" section in the .eslintrc to match where it is in
the ESLint documentation. Updated the link for Strict rules to point to
the ESLint website rather than the GitHub-hosted code.
PR-URL: https://github.com/nodejs/node/pull/5552
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-08 15:55:03 -05:00
Michaël Zasso
eb5a95e04a
doc: fix typo in fs.symlink
...
PR-URL: https://github.com/nodejs/node/pull/5560
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-03-08 15:55:02 -05:00
Robert Jefe Lindstaedt
2abf866b6e
build: update Node.js logo on Win installer
...
also change stripe color to RGB 68 136 62
PR-URL: https://github.com/nodejs/node/pull/5531
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-03-08 15:55:02 -05:00
Matteo Collina
67e9f65958
dgram: default send address to 127.0.0.1 or ::1
...
In net we default to 'localhost' as the default address for connect.
Not doing the same on dgram is confusing, because sending to 0.0.0.0
works on Linux/OS X but not on Windows. Defaulting that to 127.0.0.1 /
::1 addresses that.
Related: https://github.com/nodejs/node/pull/5407
Related: https://github.com/nodejs/node/issues/5398
Fixes: https://github.com/nodejs/node/issues/5487
PR-URL: https://github.com/nodejs/node/pull/5493
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-08 15:55:01 -05:00
Brian White
971edde0cb
util: improve format() performance further
...
Replacing the regexp and replace function with a loop improves
performance by ~60-200%.
PR-URL: https://github.com/nodejs/node/pull/5360
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-08 15:55:00 -05:00
Evan Lucas
c32d460747
util: improve util.format performance
...
By manually copying arguments and breaking the try/catch out, we are
able to improve the performance of util.format by 20-100% (depending on
the types).
PR-URL: https://github.com/nodejs/node/pull/5360
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-08 15:54:59 -05:00
Evan Lucas
12ca84fc7f
benchmark: add util.format benchmark
...
PR-URL: https://github.com/nodejs/node/pull/5360
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-08 15:54:59 -05:00
Stefan Budeanu
86900f8f2b
build: correctly detect clang version
...
Use the "Apple LLVM" version number since the banner has changed in
newer versions of Mac OS X, resulting in the obsolete assembler path
being used to compile OpenSSL.
PR-URL: https://github.com/nodejs/node/pull/5553
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-03-08 15:54:58 -05:00
cjihrig
29e26b38c5
test: bug repro for vm function redefinition
...
This commit adds a failing test case for the vm module.
Currently, if runInContext() defines a function, and a later call
to runInContext() redefines the same function, the original
function is not overwritten.
Refs: https://github.com/nodejs/node/issues/548
PR-URL: https://github.com/nodejs/node/pull/5528
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Wyatt Preul <wpreul@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-03-08 15:54:57 -05:00
cjihrig
5aa17dc136
tools: support testing known issues
...
This commit adds a known_issues directory to the test directory
for scripts that reproduce known bugs. Since these scripts are
expected to fail, it also adds a --expect-fail flag to test.py
which reports tests as successful when they fail.
Refs: https://github.com/nodejs/testing/issues/18
PR-URL: https://github.com/nodejs/node/pull/5528
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Wyatt Preul <wpreul@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-03-08 15:54:57 -05:00
James M Snell
9ad901ef44
doc: improve unhandledException doc copy
...
Rework the doc a bit to tighten it up, including removing the
use of `you`
Fix some line wrapping issues.
PR-URL: https://github.com/nodejs/node/pull/5287
Reviewed-By: Roman Klauke <romaaan.git@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
...
2016-03-08 15:54:56 -05:00
Trevor Norris
e6210d5f50
test: prevent flakey test on pi2
...
Looping rapidly and making new connections causes problems on pi2.
Instead create a new connection when an old connection has already been
made. Running a stress test of 600 times and they all passed.
Fixes: https://github.com/nodejs/node/issues/5302
PR-URL: https://github.com/nodejs/node/pull/5537
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org >
2016-03-08 15:54:55 -05:00
Wyatt Preul
40b36baa2f
test: check memoryUsage properties
...
The properties on memoryUsage were not checked before,
this commit checks them.
PR-URL: #5546
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-03-08 15:54:55 -05:00
silverwind
3bd96fdb0f
doc: update link green to match homepage
...
Also fixed a minor color issue with :focus on the title.
PR-URL: https://github.com/nodejs/node/pull/5548
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2016-03-08 15:54:54 -05:00