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

Sync to nodejs/master (08-15-2016) #108

Merged
merged 130 commits into from
Aug 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
68ac0d0
repl: Use displayErrors for SyntaxError
princejwesley Jul 7, 2016
868638b
doc: remove platform assumption from CONTRIBUTING
BethGriggs Jul 18, 2016
c948877
doc: align breakEvalOnSigint - repl option
princejwesley Jul 23, 2016
b896057
src: unifying PipeConnectWrap and TCPConnectWrap
danbev Jun 29, 2016
96611d0
doc: add information about CTC quorum rules
Trott Jul 20, 2016
99e2d43
meta: provide example activities
Trott Jul 15, 2016
8fbdfb9
test: speed up test-net-reconnect-error
Trott Jul 27, 2016
6ea8c66
doc: remove extra spaces and concats in examples
joeyespo Jul 27, 2016
1896ca9
doc: fill in missing V8 version
TimothyGu Jul 26, 2016
7d75338
timers: fix cleanup of nested same-timeout timers
erinishimoticha Jul 21, 2016
f789eb3
inspector: Do not crash if the port is n/a
Jul 25, 2016
bc464a8
test: fix flaky test-tls-wrap-timeout
Trott Jul 23, 2016
df4ef63
tools,test: show signal code when test crashes
santigimeno Jul 24, 2016
0de55d8
test: decrease inconsistency in the common.js
vsemozhetbyt Jul 16, 2016
1658297
doc: add missing semicolon
ravindrabarthwal Jul 29, 2016
0190db4
test: fix memory leaks in inspector tests
bnoordhuis Jul 20, 2016
c8c1f96
src: avoid manual memory management in inspector
bnoordhuis Jul 28, 2016
6945aa7
build: don't link against liblog on host system
bnoordhuis Jul 16, 2016
65a42ab
doc: fix path markdown formatting
joeycozza Jul 21, 2016
c52a973
test: don't hard code deprecation count
princejwesley Jul 31, 2016
8ae227c
doc: add CTC meeting minutes 2016-07-27
williamkapke Jul 27, 2016
eeaff74
build: adding config.gypi dep to addons/.buildstamp
danbev Jul 27, 2016
1495053
meta: include a minimal CTC removal policy
Trott Jul 13, 2016
59fd48e
doc: add CTC meeting minutes 2016-06-29
joshgav Jul 6, 2016
6817361
doc: add CTC meeting minutes 2016-07-06
joshgav Jul 6, 2016
6d9a500
doc: add CTC meeting minutes 2016-06-22
joshgav Jun 23, 2016
75c6d9d
cluster: support stdio option for workers
cjihrig Jul 22, 2016
80b10b4
src: fix use-after-free in inspector agent
bnoordhuis Jul 20, 2016
1b24b37
util: fix formatting of objects with SIMD enabled
addaleax Jul 25, 2016
93ac2ea
test: fix test-vm-sigint flakiness
santigimeno Jul 23, 2016
b4258bb
test: improve chained property readability
Trott Jul 30, 2016
60d46b4
deps: cherry-pick a51f429 from V8 upstream
fhinkel Jul 22, 2016
c0676f3
build: fix typo in non-essential source file name
bnoordhuis Aug 2, 2016
05c15a0
build: fix dependency on missing header file
bnoordhuis Aug 2, 2016
c9e670e
win,msi: fix inclusion of translations
joaocgreis Jul 19, 2016
29e49fc
doc, punycode: soft-deprecation of the punycode module
jasnell Aug 1, 2016
0c73685
doc: add @addaleax to the CTC
addaleax Aug 3, 2016
7400a4a
doc: piscisaureus has stepped-down from the CTC
jasnell Aug 3, 2016
9ddc915
doc: convert tabs to spaces
ChALkeR Jul 14, 2016
4aa8120
doc: *.md formatting fixes in the top-level dir
ChALkeR Jul 14, 2016
fc11fe8
doc: remove extra indentation in iojs changelog
ChALkeR Jul 14, 2016
f3f5a89
doc: *.md formatting fixes in the benchmark dir
ChALkeR Jul 14, 2016
e1643cc
doc: fix minor formatting issue in 0.10 changelog
ChALkeR Aug 4, 2016
320f433
util: support classes in util.deprecate()
vdeturckheim Jul 12, 2016
c5a18e7
Revert "fs: validate args of truncate functions in js"
Jul 22, 2016
cc18937
deps: cherry-pick 6f68f30 from v8 upstream
stefanmb Jul 20, 2016
a52b1c0
doctool: improve the title of pages in doc
yorkie Aug 1, 2016
588ee22
src: do not copy on failing setProperty()
fhinkel Jul 28, 2016
488d28d
repl: deprecate unused function convertToContext
princejwesley Jul 21, 2016
561958e
doc: fix default encoding mention in crypto.md
hugnosis Jul 20, 2016
c809b88
doc: use blockquotes for Stability: markers
addaleax Jul 15, 2016
1a9e247
readline: show completions only after 2nd TAB
addaleax Jul 15, 2016
21b0a27
Revert "fs: make callback mandatory to all async functions"
Jul 22, 2016
e3e3588
meta: clarify process for breaking changes
Trott Aug 3, 2016
0f3f76c
doc: use `git-secure-tag` for release tags
indutny Jul 23, 2016
88e862b
build: windows sharedlib support
stefanmb Jun 29, 2016
99296ee
http: specify _implicitHeader in OutgoingMessage
yorkie Aug 2, 2016
cc3a9e7
doc: use consistent markdown in README
Trott Aug 3, 2016
ff7a841
src: make EnvDelete behave like the delete operator
fhinkel Aug 4, 2016
2458bdb
doc: add CTC meeting minutes 2016-07-20
joshgav Aug 3, 2016
b866fdc
doc: add CTC meeting minutes 2016-07-13
joshgav Aug 3, 2016
1e1bbe5
tools: add .vscode folder to .gitignore
joshgav Aug 3, 2016
9a0d26f
test: remove internal headers from addons
gibfahn Aug 2, 2016
5d6d3ee
doc: clarify "Reviewed-By" iff "LGTM"
bengl Jun 6, 2016
66af6a9
doc: improve server.listen() random port
phillipj Aug 4, 2016
769f63c
doc: add `added:` information for events
lpinca Jul 21, 2016
b779eb4
repl: Add editor mode support
princejwesley Jun 12, 2016
d997448
tools: add remark-lint configuration in .remarkrc
ChALkeR Jul 14, 2016
4c86fa3
doc: fix a markdown error in CTC meeting minutes
ChALkeR Aug 5, 2016
b635f7b
zlib: remove unneeded property
jscissr Aug 5, 2016
be73480
test: fix flaky test-vm-sigint-existing-handler
addaleax Aug 4, 2016
8f90dcc
buffer: throw on negative .allocUnsafe() argument
addaleax May 31, 2016
359352c
build: export zlib symbols on Windows
Aug 5, 2016
beea23a
doc: clarify fd closing by `fs.readFile` etc.
kibertoad Jul 6, 2016
a804db1
process: save original argv[0]
ppannuto Jul 14, 2016
99f45b2
child_process: control argv0 for spawned processes
ppannuto Jul 13, 2016
f18b1c9
test: allow globals to be whitelisted
cjihrig Jul 21, 2016
2d4a521
repl: don't override all internal repl defaults
cjihrig Jul 21, 2016
accaa34
doc: clarify collaborators & ctc members relationships
yorkie Aug 6, 2016
35109dd
lib: remove double check of string type
fhinkel Jul 30, 2016
827eed1
doc: add CTC meeting minutes 2016-08-03
joshgav Aug 4, 2016
43ef580
src: remove unused using decls
hokein Aug 6, 2016
f59b888
repl: disable Ctrl+C support on win32 for now
addaleax Aug 4, 2016
4a87abb
fs: add bytesRead to ReadStream
LinusU Aug 1, 2016
eb172fe
doc: Clean up roff source in manpage
Alhadis Jul 21, 2016
5111e78
deps: float gyp patch for long filenames
addaleax May 27, 2016
55852e1
module: fix node_modules search path in edge case
hefangshi May 10, 2016
e03a7b2
build: turn on thin static archives
bnoordhuis Aug 3, 2016
a722205
build: add correct shared library naming on OS X
Jul 12, 2016
bb3b4d7
doc: fix typo in vm.runInNewContext() description
lpinca Aug 7, 2016
387ab62
assert: fix deepEqual/deepStrictEqual on equivalent typed arrays
feross Aug 6, 2016
a8438a0
test,assert: add deepEqual/deepStrictEqual tests for typed arrays
feross Aug 7, 2016
1a6a69a
util: add inspect.defaultOptions
silverwind Aug 9, 2016
dabac8a
doc: remove spurious new line in CHANGELOG_V6.md
lpinca Aug 8, 2016
1b99093
timers: remove unused repeat param in timer_wrap
jscissr Aug 6, 2016
b7a8a69
events: unwrap #once listeners in #listeners
omsmith Mar 4, 2016
ae25ed3
benchmark: favor === over ==
Trott Aug 6, 2016
c628982
doc: add `added:` information for cluster
addaleax Jul 9, 2016
49e473a
test: fix failing inspector cctest
Aug 8, 2016
e313c02
tools: update to ESLint 3.2.2
Trott Aug 6, 2016
8726a1c
tools: enable linting for chained properties
Trott Aug 6, 2016
4c62892
test: console constructor missing new keyword
Trott Aug 7, 2016
e925b62
doc: fix cluster message event docs
zbjornson Aug 8, 2016
4878e1c
doc: Add fhinkel to collaborators
fhinkel Aug 10, 2016
ab3306a
tty: set the handle to blocking mode
Fishrock123 Jul 14, 2016
ba3ccec
doc: move orangemocha to collaborators list
Trott Aug 11, 2016
84f0778
src: use RAII for mutexes in node_watchdog.cc
addaleax Aug 1, 2016
6d3241d
test,util: fix flaky test-util-sigint-watchdog
addaleax Aug 1, 2016
51d45db
deps: V8: cherry-pick 588e15c, c0d4bb8
Jun 28, 2016
a0b3bc5
test: mark test failing on AIX as flaky
mhdawson Aug 11, 2016
e40234d
deps: v8_inspector update
ofrobots Aug 10, 2016
f6070a1
deps: v8_inspector: console support
alexkozy Aug 5, 2016
08996fd
fs: restore JS implementation of realpath
bzoz Jul 26, 2016
b9832eb
bench: add bench for fs.realpath() fix
trevnorris Jul 14, 2016
9e7fd8e
benchmark: fix comment typos and code format
adrian-nitu-92 Aug 4, 2016
4b527a4
benchmark: update compare.js exit method
adrian-nitu-92 Aug 5, 2016
474e629
benchmark: add --format csv option
adrian-nitu-92 Aug 3, 2016
b948744
doc: update windows prerequisites
bnoordhuis Aug 10, 2016
fa1476c
doc: add POST_STATUS_TO_PR info to onboarding doc
Trott Aug 10, 2016
ca6363b
doc: minor updates to onboarding doc
Trott Aug 10, 2016
3dfcb2e
test: add test for debug usage message
Trott Aug 10, 2016
6a3dbda
udp: remove ancient check
saghul Aug 12, 2016
fce4b98
repl,util: insert carriage returns in output
JungMinu Aug 8, 2016
3fe55f6
tools: favor === over == in license2rtf.js
Trott Aug 11, 2016
cb2e83e
tools: enable rest-spread-spacing
Trott Aug 11, 2016
26cd48f
inspector: add support for uncaught exception
alexkozy Aug 10, 2016
24e4488
doc: fix "hashOwnProperty" typo in querystring
bengourley Aug 15, 2016
913ea18
Merge 'nodejs/master' into chakracore-master
kunalspathak Aug 15, 2016
45ff9e9
chakrashim: Added missing API in `v8.h`
kunalspathak Aug 15, 2016
a606f84
src: fix build break for !NODE_USE_V8_PLATFORM
kunalspathak Aug 15, 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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ rules:
brace-style: [2, 1tbs, {allowSingleLine: true}]
comma-spacing: 2
eol-last: 2
indent: [2, 2, {SwitchCase: 1}]
indent: [2, 2, {SwitchCase: 1, MemberExpression: 1}]
key-spacing: [2, {mode: minimum}]
keyword-spacing: 2
linebreak-style: [1, unix]
Expand Down Expand Up @@ -87,6 +87,7 @@ rules:
no-new-symbol: 2
no-this-before-super: 2
prefer-const: 2
rest-spread-spacing: 2
template-curly-spacing: 2

# Custom rules in tools/eslint-rules
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ ipch/
*.opensdf
*.VC.opendb
.vs/
.vscode/

/config.mk
/config.gypi
Expand Down
35 changes: 35 additions & 0 deletions .remarkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"plugins": {
"remark-lint": {
"code-block-style": false,
"definition-case": false,
"emphasis-marker": false,
"first-heading-level": false,
"heading-increment": false,
"list-item-content-indent": false,
"list-item-bullet-indent": false,
"list-item-indent": false,
"list-item-spacing": false,
"maximum-heading-length": false,
"maximum-line-length": false,
"no-consecutive-blank-lines": false,
"no-duplicate-headings": false,
"no-emphasis-as-heading": false,
"no-file-name-articles": false,
"no-file-name-irregular-characters": false,
"no-heading-punctuation": false,
"no-html": false,
"no-inline-padding": false,
"no-shell-dollars": false,
"no-shortcut-reference-link": false,
"no-literal-urls": false,
"no-missing-blank-lines": false,
"no-multiple-toplevel-headings": false,
"no-undefined-references": false,
"ordered-list-marker-style": false,
"ordered-list-marker-value": false,
"table-pipe-alignment": false,
"unordered-list-marker-style": false
}
}
}
54 changes: 29 additions & 25 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ On FreeBSD and OpenBSD, you may also need:
* libexecinfo (FreeBSD and OpenBSD only)


```text
```console
$ ./configure
$ make
$ [sudo] make install
Expand All @@ -37,7 +37,7 @@ $ [sudo] make install
If your Python binary is in a non-standard location or has a
non-standard name, run the following instead:

```text
```console
$ export PYTHON=/path/to/python
$ $PYTHON ./configure
$ make
Expand All @@ -46,13 +46,13 @@ $ [sudo] make install

To run the tests:

```text
```console
$ make test
```

To run the native module tests:

```text
```console
$ make test-addons
```

Expand All @@ -61,35 +61,35 @@ To run the npm test suite:
*note: to run the suite on node v4 or earlier you must first*
*run `make install`*

```
```console
$ make test-npm
```

To build the documentation:

This will build Node.js first (if necessary) and then use it to build the docs:

```text
```console
$ make doc
```

If you have an existing Node.js you can build just the docs with:

```text
```console
$ NODE=node make doc-only
```

(Where `node` is the path to your executable.)

To read the documentation:

```text
```console
$ man doc/node.1
```

To test if Node.js was built correctly:

```
```console
$ node -e "console.log('Hello from Node.js ' + process.version)"
```

Expand All @@ -101,25 +101,25 @@ Prerequisites:
* [Python 2.6 or 2.7](https://www.python.org/downloads/)
* One of:
* [Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools)
* [Visual Studio](https://www.visualstudio.com/) 2013 / 2015, all editions including the Community edition
* [Visual Studio](https://www.visualstudio.com/) Express 2013 / 2015 for Desktop
* [Visual Studio 2015 Update 3](https://www.visualstudio.com/), all editions
including the Community edition.
* Basic Unix tools required for some tests,
[Git for Windows](http://git-scm.com/download/win) includes Git Bash
and tools which can be included in the global `PATH`.

```text
```console
> vcbuild nosign
```

To run the tests:

```text
```console
> vcbuild test
```

To test if Node.js was built correctly:

```text
```console
> Release\node -e "console.log('Hello from Node.js', process.version)"
```

Expand All @@ -136,7 +136,7 @@ Be sure you have downloaded and extracted [Android NDK]
(https://developer.android.com/tools/sdk/ndk/index.html)
before in a folder. Then run:

```
```console
$ ./android-configure /path/to/your/android-ndk
$ make
```
Expand Down Expand Up @@ -165,13 +165,13 @@ Node.js source does not include all locales.)

##### Unix / OS X:

```text
```console
$ ./configure --with-intl=full-icu --download=all
```

##### Windows:

```text
```console
> vcbuild full-icu download-all
```

Expand All @@ -182,19 +182,19 @@ The `Intl` object will not be available, nor some other APIs such as

##### Unix / OS X:

```text
```console
$ ./configure --without-intl
```

##### Windows:

```text
```console
> vcbuild without-intl
```

#### Use existing installed ICU (Unix / OS X only):

```text
```console
$ pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
```

Expand All @@ -210,14 +210,18 @@ Download the file named something like `icu4c-**##.#**-src.tgz` (or

##### Unix / OS X

```text
# from an already-unpacked ICU:
From an already-unpacked ICU:
```console
$ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu
```

# from a local ICU tarball
From a local ICU tarball:
```console
$ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu.tgz
```

# from a tarball URL
From a tarball URL:
```console
$ ./configure --with-intl=full-icu --with-icu-source=http://url/to/icu.tgz
```

Expand All @@ -227,7 +231,7 @@ First unpack latest ICU to `deps/icu`
[icu4c-**##.#**-src.tgz](http://icu-project.org/download) (or `.zip`)
as `deps/icu` (You'll have: `deps/icu/source/...`)

```text
```console
> vcbuild full-icu
```

Expand Down
12 changes: 10 additions & 2 deletions COLLABORATOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,20 @@ and work schedules. Trivial changes (e.g. those which fix minor bugs
or improve performance without affecting API or causing other
wide-reaching impact) may be landed after a shorter delay.

Where there is no disagreement amongst Collaborators, a pull request
may be landed given appropriate review. Where there is discussion
For non-breaking changes, if there is no disagreement amongst Collaborators, a
pull request may be landed given appropriate review. Where there is discussion
amongst Collaborators, consensus should be sought if possible. The
lack of consensus may indicate the need to elevate discussion to the
CTC for resolution (see below).

Breaking changes (that is, pull requests that require an increase in the
major version number, known as `semver-major` changes) must be elevated for
review by the CTC. This does not necessarily mean that the PR must be put onto
the CTC meeting agenda. If multiple CTC members approve (`LGTM`) the PR and no
Collaborators oppose the PR, it can be landed. Where there is disagreement among
CTC members or objections from one or more Collaborators, `semver-major` pull
requests should be put on the CTC meeting agenda.

All bugfixes require a test case which demonstrates the defect. The
test should *fail* before the change, and *pass* after the change.

Expand Down
22 changes: 17 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ changed and why. Follow these guidelines when writing one:

A good commit log can look something like this:

```
```txt
subsystem: explaining the commit in one line

Body of commit message is a few lines of text, explaining things
Expand All @@ -122,7 +122,7 @@ what subsystem (or subsystems) your changes touch.
If your patch fixes an open issue, you can add a reference to it at the end
of the log. Use the `Fixes:` prefix and the full issue URL. For example:

```
```txt
Fixes: https://github.com/nodejs/node/issues/1337
```

Expand All @@ -135,23 +135,35 @@ $ git fetch upstream
$ git rebase upstream/master
```


### Step 5: Test

Bug fixes and features **should come with tests**. Add your tests in the
`test/parallel/` directory. For guidance on how to write a test for the Node.js
project, see this [guide](./doc/guides/writing_tests.md). Looking at other tests
to see how they should be structured can also help.

To run the tests on Unix / OS X:

```text
$ ./configure && make -j8 test
```

Windows:

```text
> vcbuild test
```

(See the [BUILDING.md](./BUILDING.md) for more details.)

Make sure the linter is happy and that all tests pass. Please, do not submit
patches that fail either check.

Running `make test` will run the linter as well unless one or more tests fail.
If you want to run the linter without running tests, use `make lint`.
Running `make test`/`vcbuild test` will run the linter as well unless one or
more tests fail.

If you want to run the linter without running tests, use
`make lint`/`vcbuild jslint`.

If you are updating tests and just want to run a single test to check it, you
can use this syntax to run it exactly as the test harness would:
Expand Down
Loading