Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Sync to nodejs/master (2016-05-20) #73

Merged
merged 77 commits into from
May 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
52bae22
test: abstract skip functionality to common
Fishrock123 May 11, 2016
2d524bc
deps: limit regress/regress-crbug-514081 v8 test
mhdawson May 9, 2016
9d0b7d8
test: add tests for stream3 buffering using cork
alexjeffburke May 12, 2016
991ce2d
test: fix test-debugger-repl-term
Trott May 11, 2016
b3bc362
doc: add `added:` information for v8
Trott May 11, 2016
517b892
tools: enforce linting for unix-style line endings
Trott May 11, 2016
9d445bc
test: fix test-debugger-repl-break-in-module
Trott May 11, 2016
a661e26
doc: undocument fs.open's 'rs' mode
saghul May 13, 2016
d13b9d3
doc: fix exec example in child_process
evanlucas May 9, 2016
ccbb00e
test: add --repeat option to tools/test.py
mhdawson May 11, 2016
830a726
build: fix DESTCPU detection for binary target
richardlau Apr 20, 2016
ae17883
repl: copying tabs shouldn't trigger completion
ghaiklor May 13, 2016
fc96fda
doc: appendFileSync accepts fd as well
fhalde May 12, 2016
f52b2f1
doc: add `added:` information for assert
Trott May 11, 2016
5d38d54
src,module: add --preserve-symlinks command line flag
jasnell May 2, 2016
a4564f3
util: adhere to `noDeprecation` set at runtime
addaleax May 11, 2016
5d64ff4
tools: do not build addons during compilation
May 12, 2016
084b2ec
test: include component in tap output
bnoordhuis May 9, 2016
b5a75ba
test: fix flaky test-preload
Trott May 13, 2016
517d1da
test: favor strictEqual() in addon test
Trott May 12, 2016
1a0c80a
test: remove common.getServiceName()
Trott May 12, 2016
f4f6c6e
child_process: use /system/bin/sh on android
bnoordhuis May 13, 2016
bef1ec0
doc: fix issues related to page scrolling
silverwind May 11, 2016
32b46d9
doc: update fs callback example error stack
DavidCai1111 May 6, 2016
9bc72ea
test: refactor doctool tests
Trott May 12, 2016
d73e189
tools,test: make argument linting more stringent
Trott May 12, 2016
eb089e7
doc: add `added:` info for `string_decoder`
Trott May 13, 2016
f17b949
doc: update vm.runInDebugContext() example
bnoordhuis May 14, 2016
9c33e0e
util: fix invalid date output with util.inspect
rumkin May 1, 2016
1ba5a56
doc: readline.emitKeypressEvents and raw mode
arve0 May 7, 2016
477d358
doc: improve zlib docs
jasnell May 13, 2016
5a5b74a
test: move test-debugger-debug-brk to sequential
Trott May 13, 2016
5f31b7e
doc: add `added` info for `dgram.setBroadcast()`
Trott May 16, 2016
78520fa
test,dgram: add tests for setBroadcast()
Trott May 16, 2016
f293d0b
lib: replace legacy uses of __defineGetter__
jasnell May 15, 2016
b78a704
deps: upgrade libuv to 1.9.1
saghul May 16, 2016
b55becd
doc: copyedit maxBuffer note for child_process
Trott May 14, 2016
ffc708d
doc: fix links in socket.connecting
fanatid May 9, 2016
42ede93
doc: trim GitHub template comments
Trott May 14, 2016
f856234
process: internal/process/stdio.js cleanup / modernization
jasnell May 14, 2016
dcccbfd
src: refactor require('constants')
jasnell May 2, 2016
5026192
doc: update openssl.org hash links
silverwind May 17, 2016
d3f3e18
doc: add `added:` in for `tty`
Trott May 16, 2016
00b200f
doc: remove link to Sign in crypto.md
fanatid May 17, 2016
26120e2
2016-05-17, Version 6.2.0 (Stable)
evanlucas May 17, 2016
ba10ea8
doc: add `added:` information for fs
addaleax May 12, 2016
b53473f
zlib: remove `_closed` in source
addaleax May 4, 2016
377eb22
test: added tests for https-agent-getname
suryagh May 14, 2016
149bea0
test: cluster-setup-master online workers check
drifkin May 2, 2016
56ae651
test: robust handling of env for npm-test-install
May 17, 2016
2ccba1f
doc: clarify fs.mkdtemp prefix argument
jasnell May 17, 2016
dfaa9c9
path: fix basename() regressions
mscdex May 5, 2016
7d40412
test: remove duplicate path tests
mscdex May 5, 2016
27549f6
test: add more path.basename() tests
mscdex May 10, 2016
89460f1
test: fix flaky test-stdout-close-catch
santigimeno May 17, 2016
178e634
src: fix without-intl build
addaleax May 17, 2016
2c926dc
test: add logging for test-debug-port-cluster
Trott May 15, 2016
0350505
test: fix test-debug-port-cluster flakiness
Trott May 16, 2016
1ef4916
doc: add `added:` info for dgram.*Membership()
Trott May 16, 2016
f94ebb0
dgram,test: add addMembership/dropMembership tests
Trott May 16, 2016
4fe1d6e
unix,stream: fix getting the correct fd for a handle
saghul May 18, 2016
b90c52e
doc: add `added:` information for punycode
firedfox May 17, 2016
fe77de1
http: use `localAddress` instead of `path`
dirceu Feb 11, 2016
2ab75b7
src: add node::FreeEnvironment public API
zcbenz Sep 28, 2015
ae0f68d
doc: add note for fs.watch virtualized env
eljefedelrodeodeljefe May 17, 2016
4babe65
tools: print stderr on bad test.py `vmArch` check
Fishrock123 May 16, 2016
ef86953
doc: fix name to match git log
eljefedelrodeodeljefe May 19, 2016
bd72857
doc: Add resolveNaptr and naptr rrtype docs
doug-wade May 5, 2016
395cc88
test: refactor test-tls-reuse-host-from-socket
Trott May 14, 2016
baeed8b
doc: improve vm.md copy
jasnell May 18, 2016
37a5a1c
test: refactor to eliminate __defineGetter__
Trott May 18, 2016
21b53fe
tools: disallow deprecated define getter/setter
Trott May 15, 2016
b6a646d
doc: reduce GitHub template verbosity
Trott May 17, 2016
62376d9
build: unbreak configure with python 2.6
bnoordhuis May 19, 2016
6fd464c
Merge 'nodejs/master' into chakracore-master
kunalspathak May 20, 2016
2048b2c
test: Disabled a debugger unit test
kunalspathak May 22, 2016
8d11795
tool: modified eslint rule for line-breaks
kunalspathak May 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ rules:
indent: [2, 2, {SwitchCase: 1}]
key-spacing: [2, {mode: "minimum"}]
keyword-spacing: 2
linebreak-style: [1, "unix"]
max-len: [2, 80, 2]
new-parens: 2
no-mixed-spaces-and-tabs: 2
Expand Down Expand Up @@ -93,6 +94,7 @@ rules:
assert-fail-single-argument: 2
new-with-error: [2, "Error", "RangeError", "TypeError", "SyntaxError", "ReferenceError"]
no-deepEqual: 2
no-definegetter-definesetter: 2

# Global scoped method and vars
globals:
Expand Down
20 changes: 7 additions & 13 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
<!--
Thanks for wanting to report an issue you've found in Node.js. Please fill in
the template below by replacing the html comments with an appropriate answer.
If unsure about something, just do as best as you're able.
Thank you for reporting an issue. Please fill in the template below. If unsure
about something, just do as best as you're able.

version: usually output of `node -v`
platform: either `uname -a` output, or if Windows, version and 32 or 64-bit.
subsystem: optional -- if known please specify affected core module name.
Version: usually output of `node -v`
Platform: either `uname -a` output, or if Windows, version and 32 or 64-bit
Subsystem: if known, please specify affected core module name

It will be much easier for us to fix the issue if a test case that reproduces
the problem is provided. Ideally this test case should not have any external
dependencies. We understand that it is not always possible to reduce your code
to a small test case, but we would appreciate to have as
much data as possible.

Thank you!
If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you are able.
-->

* **Version**:
Expand Down
14 changes: 5 additions & 9 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<!--
Thank you for submitting a pull request to Node.js. Before you submit, please
review below requirements and walk through the checklist. You can 'tick'
a box by using the letter "x": [x].
Thank you for your pull request. Please review below requirements and walk
through the checklist. You can 'tick' a box by using the letter "x": [x].

Run the test suite by invoking: `make -j4 lint test` on linux or
`vcbuild test nosign` on Windows.
Run the test suite with: `make -j4 test` on UNIX or `vcbuild test nosign` on
Windows.

If this aims to fix a regression or you’re adding a feature, make sure you also
write a test. Finally – if possible a benchmark that quantifies your changes.
write a test. If possible, include a benchmark that quantifies your changes.

Finally, read through our contributors guide and make adjustments as necessary:
https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
-->

##### Checklist

<!-- remove lines that do not apply to you -->

- [ ] tests and code linting passes
Expand All @@ -24,10 +22,8 @@ https://github.com/nodejs/node/blob/master/CONTRIBUTING.md


##### Affected core subsystem(s)

<!-- provide affected core subsystem(s) (like doc, cluster, crypto, etc) -->


##### Description of change

<!-- provide a description of the change below this comment -->
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.1.0">6.1.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.2.0">6.2.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.1.0">6.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.0.0">6.0.0</a><br/>
</td>
<td valign="top">
Expand Down Expand Up @@ -144,7 +145,7 @@ release.

### Notes

* Release streams marked with `LTS` are currently covered by the
* Release streams marked with `LTS` are currently covered by the
[Node.js Long Term Support plan](https://github.com/nodejs/LTS).
* Release versions displayed in **bold** text represent the most
recent actively supported release.
Expand Down
35 changes: 33 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ v8:
tools/make-v8.sh v8
$(MAKE) -C deps/v8 $(V8_ARCH) $(V8_BUILD_OPTIONS)

test: | build-addons cctest # Both targets depend on 'all'.
test: all
$(MAKE) build-addons
$(MAKE) cctest
$(PYTHON) tools/test.py --mode=release -J \
addon doctool known_issues message parallel sequential
$(MAKE) lint
Expand Down Expand Up @@ -331,11 +333,40 @@ RELEASE=$(shell sed -ne 's/\#define NODE_VERSION_IS_RELEASE \([01]\)/\1/p' src/n
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
NPMVERSION=v$(shell cat deps/npm/package.json | grep '"version"' | sed 's/^[^:]*: "\([^"]*\)",.*/\1/')

ifeq ($(findstring x86_64,$(shell uname -m)),x86_64)
UNAME_M=$(shell uname -m)
ifeq ($(findstring x86_64,$(UNAME_M)),x86_64)
DESTCPU ?= x64
else
ifeq ($(findstring ppc64,$(UNAME_M)),ppc64)
DESTCPU ?= ppc64
else
ifeq ($(findstring ppc,$(UNAME_M)),ppc)
DESTCPU ?= ppc
else
ifeq ($(findstring s390x,$(UNAME_M)),s390x)
DESTCPU ?= s390x
else
ifeq ($(findstring s390,$(UNAME_M)),s390)
DESTCPU ?= s390
else
ifeq ($(findstring arm,$(UNAME_M)),arm)
DESTCPU ?= arm
else
ifeq ($(findstring aarch64,$(UNAME_M)),aarch64)
DESTCPU ?= aarch64
else
ifeq ($(findstring powerpc,$(shell uname -p)),powerpc)
DESTCPU ?= ppc64
else
DESTCPU ?= x86
endif
endif
endif
endif
endif
endif
endif
endif
ifeq ($(DESTCPU),x64)
ARCH=x64
else
Expand Down
19 changes: 9 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python

import errno
import optparse
import os
import pprint
Expand Down Expand Up @@ -442,19 +444,16 @@ def b(value):

def pkg_config(pkg):
pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config')
args = '--silence-errors'
retval = ()
for flag in ['--libs-only-l', '--cflags-only-I', '--libs-only-L']:
try:
val = subprocess.check_output([pkg_config, args, flag, pkg])
# check_output returns bytes
val = val.encode().strip().rstrip('\n')
except subprocess.CalledProcessError:
# most likely missing a .pc-file
val = None
except OSError:
# no pkg-config/pkgconf installed
return (None, None, None)
proc = subprocess.Popen(
shlex.split(pkg_config) + ['--silence-errors', flag, pkg],
stdout=subprocess.PIPE)
val = proc.communicate()[0].strip()
except OSError, e:
if e.errno != errno.ENOENT: raise e # Unexpected error.
return (None, None, None) # No pkg-config/pkgconf installed.
retval += (val,)
return retval

Expand Down
4 changes: 4 additions & 0 deletions deps/uv/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,7 @@ Robert Chiras <robert.chiras@intel.com>
Kári Tristan Helgason <kthelgason@gmail.com>
Krishnaraj Bhat <krrishnarraj@gmail.com>
Enno Boland <g@s01.de>
Michael Fero <michael.fero@datastax.com>
Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
Myles Borins <myles.borins@gmail.com>
Tony Theodore <tonyt@logyst.com>
89 changes: 89 additions & 0 deletions deps/uv/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,92 @@
2016.05.17, Version 1.9.1 (Stable), d989902ac658b4323a4f4020446e6f4dc449e25c

Changes since version 1.9.0:

* test: handle root home directories (cjihrig)

* unix: implement uv__fs_futime for AIX 7.1 (Imran Iqbal)

* test: skip early bind tests if no IPv6 is supported (Saúl Ibarra Corretgé)

* win: fix var declaration to be C89 compliant (Michael Fero)

* unix: use POLL{IN,OUT,etc} constants directly (Ben Noordhuis)

* doc: add ability to live reload and regenerate HTML (Saúl Ibarra Corretgé)

* Revert "win,build: remove unused build defines" (cjihrig)

* linux: fix fd leaks in uv_cpu_info() error paths (Ben Noordhuis)

* linux: don't abort on malformed /proc/stat (Ben Noordhuis)

* linux: fix long lines in linux-core.c (Ben Noordhuis)

* test: fix fs_event_watch_file_current_dir for AIX (Imran Iqbal)

* unix,fs: code cleanup of uv_fs_event_start for AIX (Imran Iqbal)

* unix: delay signal handling until after normal i/o (Ben Noordhuis)

* android: pthread_sigmask() does not set errno (Oguz Bastemur)

* win: work around sharepoint scandir bug (Ben Noordhuis)

* unix: guard against clobbering errno in uv__free() (Ben Noordhuis)

* unix: remove unneeded SAVE_ERRNO wrappers (Ben Noordhuis)

* test: skip fs_event_close_in_callback on AIX (Imran Iqbal)

* win: add maxrss, pagefaults to uv_getrusage() (Robert Jefe Lindstaedt)

* test: set a big send buffer size for tcp_write_queue_order (Andrius Bentkus)

* unix: error on realpath if PATH_MAX is undefined (Myles Borins)

* unix: fix bug in barrier fallback implementation (Kári Tristan Helgason)

* build: bump android ndk version (Kári Tristan Helgason)

* build: always compile with -fvisibility=hidden (Ben Noordhuis)

* test: fix -Wformat warnings in platform test (Ben Noordhuis)

* win: clarify fsevents handling code (Saúl Ibarra Corretgé)

* test: fix POLLHDRUP related failures for AIX (Imran Iqbal)

* build, mingw: set LIBS in configure.ac (Tony Theodore)

* win: improve uv__convert_utf16_to_utf8 (Saúl Ibarra Corretgé)

* win: simplified UTF16 -> UTF8 conversions (Saúl Ibarra Corretgé)

* win: remove unneeded condition (Saúl Ibarra Corretgé)

* darwin: work around condition variable kernel bug (Ben Noordhuis)

* darwin: make thread stack multiple of page size (Ben Noordhuis)

* build,win: rename platform to msbuild_platform (João Reis)

* gitignore: ignore VS temporary database files (João Reis)

* test: skip emfile on AIX (Imran Iqbal)

* unix: use system allocator for scandir() (cjihrig)

* common: release uv_fs_scandir() array (cjihrig)

* win: call uv__fs_scandir_cleanup() (cjihrig)

* win,tty: fix read stop in line mode (João Reis)

* win,tty: don't duplicate handle for line reads (João Reis)

* win,tty: restore cursor after canceling line read (Alexis Campailla)


2016.04.08, Version 1.9.0 (Stable), 229b3a4cc150aebd6561e6bd43076eafa7a03756

Changes since version 1.8.0:
Expand Down
13 changes: 8 additions & 5 deletions deps/uv/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ if WINNT

include_HEADERS += include/uv-win.h include/tree.h
AM_CPPFLAGS += -I$(top_srcdir)/src/win \
-DWIN32_LEAN_AND_MEAN \
-D_WIN32_WINNT=0x0600
LIBS += -lws2_32 -lpsapi -liphlpapi -lshell32 -luserenv
libuv_la_SOURCES += src/win/async.c \
src/win/atomicops-inl.h \
src/win/core.c \
Expand Down Expand Up @@ -290,20 +290,23 @@ endif

if ANDROID
include_HEADERS += include/android-ifaddrs.h \
include/pthread-fixes.h
include/pthread-barrier.h
libuv_la_SOURCES += src/unix/android-ifaddrs.c \
src/unix/pthread-fixes.c
src/unix/pthread-fixes.c \
src/unix/pthread-barrier.c
endif

if DARWIN
include_HEADERS += include/uv-darwin.h
include_HEADERS += include/uv-darwin.h \
include/pthread-barrier.h
libuv_la_CFLAGS += -D_DARWIN_USE_64_BIT_INODE=1
libuv_la_CFLAGS += -D_DARWIN_UNLIMITED_SELECT=1
libuv_la_SOURCES += src/unix/darwin.c \
src/unix/darwin-proctitle.c \
src/unix/fsevents.c \
src/unix/kqueue.c \
src/unix/proctitle.c
src/unix/proctitle.c \
src/unix/pthread-barrier.c
test_run_tests_LDFLAGS += -lutil
endif

Expand Down
1 change: 1 addition & 0 deletions deps/uv/Makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ CFLAGS += -Wall \
-Iinclude \
-Isrc \
-Isrc/win \
-DWIN32_LEAN_AND_MEAN \
-D_WIN32_WINNT=0x0600

INCLUDES = include/stdint-msvc2008.h \
Expand Down
5 changes: 5 additions & 0 deletions deps/uv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ Build documentation as HTML:

$ make html

Build documentation as HTML and live reload it when it changes (this requires
sphinx-autobuild to be installed and is only supported on Unix):

$ make livehtml

Build documentation as man pages:

$ make man
Expand Down
4 changes: 2 additions & 2 deletions deps/uv/android-configure
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export TOOLCHAIN=$PWD/android-toolchain
mkdir -p $TOOLCHAIN
$1/build/tools/make-standalone-toolchain.sh \
--toolchain=arm-linux-androideabi-4.8 \
--toolchain=arm-linux-androideabi-4.9 \
--arch=arm \
--install-dir=$TOOLCHAIN \
--platform=android-21
Expand All @@ -14,7 +14,7 @@ export CXX=arm-linux-androideabi-g++
export LINK=arm-linux-androideabi-g++
export PLATFORM=android

if [ $2 -a $2 == 'gyp' ]
if [[ $2 == 'gyp' ]]
then
./gyp_uv.py -Dtarget_arch=arm -DOS=android -f make-android
fi
2 changes: 1 addition & 1 deletion deps/uv/appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v1.9.0.build{build}
version: v1.9.1.build{build}

install:
- cinst -y nsis
Expand Down
7 changes: 0 additions & 7 deletions deps/uv/common.gypi
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
'variables': {
'visibility%': 'hidden', # V8's visibility setting
'target_arch%': 'ia32', # set v8's target architecture
'host_arch%': 'ia32', # set v8's host architecture
'uv_library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
Expand Down Expand Up @@ -156,9 +155,6 @@
'cflags': [ '-pthread' ],
'ldflags': [ '-pthread' ],
}],
[ 'visibility=="hidden"', {
'cflags': [ '-fvisibility=hidden' ],
}],
],
}],
['OS=="mac"', {
Expand All @@ -170,9 +166,6 @@
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
# GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
'PREBINDING': 'NO', # No -Wl,-prebind
'USE_HEADERMAP': 'NO',
Expand Down
Loading