Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v10.8.0 proposal #22040

Merged
merged 95 commits into from
Aug 1, 2018
Merged
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
a086604
test: remove 3rd arg from to assert.strictEqual()
hectorcoronado Jul 16, 2018
a592871
http: name anonymous function in _http_common.js
kimberlake Jul 11, 2018
0f70017
tls: name anonymous function in tls.js
klacabane Jul 11, 2018
c45623a
src: avoid unnecessarily formatting a warning
tniessen Jul 16, 2018
d0c16f4
stream: named anonymous functions in _stream_readable.js
radsimu Jul 11, 2018
6af4f1f
stream: name anonymous function in _stream_writable.js
mariotsi Jul 12, 2018
d7edee4
trace_events: add more process metadata
jasnell Jul 12, 2018
580071d
tls: named anonymous functions in _tls_wrap.js
prayag21 Jul 11, 2018
b510cdc
doc: fix worker example to receive message
thefourtheye Jun 23, 2018
292aa42
test: fix faulty relpath test
devsnek May 25, 2018
ab0da57
doc: make minor improvements to collab guide
Trott Jul 18, 2018
4d78a21
doc: add missing `require` to example in http2.md
kevinsimper Jul 17, 2018
335575e
benchmark: remove arrays benchmark
psmarshall Jul 16, 2018
756dff4
test: refactor test-module-loading assertions
bpinhosilva Jul 16, 2018
41ff1bb
src: prepare for V8 Swallowed Rejection Hook
bmeurer Jul 5, 2018
c23e8b5
deps: cherry-pick 2075910 from upstream V8
targos Jul 16, 2018
ec0ff70
deps: cherry-pick 907d7bc from upstream V8
targos Jul 16, 2018
484140e
fs: stop lazy loading stream constructors
targos Jul 12, 2018
ff5c6dc
tools: properly convert .gypi in install.py
mi-ac Apr 30, 2018
d0f8af0
src: use offset calc. instead of `req->data` in node_file
addaleax Jul 16, 2018
6b925eb
tools: make getnodeversion.py python3-compatible
silverwind Jul 18, 2018
1e15581
http2: remove unused nghttp2 error list
addaleax Jul 15, 2018
4c5fc5c
build: move to `npm ci` where possible
Trott Jul 13, 2018
4f00562
build: add new benchmark targets
kenny-y Jul 13, 2018
af1530e
doc: add cjihrig pronouns
cjihrig Jul 20, 2018
f89d194
tools: improve update-eslint.sh
Trott Jul 15, 2018
46d14fc
test: refactor cluster-net-listen-relative-path
Trott Jul 18, 2018
fd5a0c7
doc: fix incorrect method name
antsmartian Jul 20, 2018
bd352f0
doc: update and improve the release guide
targos Jun 19, 2018
5606f0b
tools: create HTML docs with unified/remark/rehype
rubys Jun 23, 2018
8191563
test: allow tests to pass without internet
helio-frota Jul 20, 2018
eabe907
doc: fix descriptions of sync methods in fs.md
timruffles Jul 11, 2018
b98bf82
tools: build API TOC using raw headers
rubys Jul 21, 2018
9817e40
lib,src: replace all C++ promises with JS promises
BridgeAR May 18, 2018
bea1ee8
test: make crashOnUnhandleRejection opt-out
targos Jul 17, 2018
4f8620e
src: fix formatting of PIDs
tniessen Jul 17, 2018
d9cd171
src: remove unnecessary else
maclover7 Jul 18, 2018
be75795
src: don't store one-use strings in variable
maclover7 Jul 18, 2018
b56c8ad
deps: V8: Backport of 0dd3390 from upstream
jasnell Jul 19, 2018
cfeed2b
trace_events: add support for builtin trace
jasnell May 14, 2018
5e562fd
doc: fix sorting in the `vm.Module` section
vsemozhetbyt Jul 22, 2018
5e71d63
tools: validate apidoc links
rubys Jul 19, 2018
e8d5787
doc: document MODULE_NOT_FOUND error
jpage-godaddy Jul 19, 2018
eea199b
test: fix http2 connection abort test
addaleax Jul 17, 2018
c3d9000
doc: document http2 network error behaviour
addaleax Jul 17, 2018
3213c09
test: provide better message for orphan output documentation
rubys Jul 20, 2018
5e1ceaa
build: remove redundant Makefile target
Trott Jul 20, 2018
45816c5
n-api: guard against cond null dereference
Jul 18, 2018
c44df51
doc: link n-api module init to multi-load addons
Jul 19, 2018
50ccda2
build: increase macOS minimum supported version
targos Jul 19, 2018
623ef49
test: address flaky worker test
Trott Jul 19, 2018
96bb605
doc: add node-test-commit-custom-suites to docs
Trott Jul 21, 2018
f868415
deps: cherry-pick 804a693 from upstream V8
Jul 17, 2018
5b0c451
doc: add guide for updating N-API API surface
digitalinfinity Jul 19, 2018
36f8b82
tools: flatten apidoc headers
rubys Jul 22, 2018
478dbee
doc: replace deprecated CI job
vsemozhetbyt Jul 22, 2018
793a5bb
test: don't fail http2 abort test if 'data' is called multiple times
rubys Jul 21, 2018
af6b824
test: fix unreliable test-fs-stat-bigint
Jul 23, 2018
f6606bf
src: add missing cmath include to traced_value.cc
addaleax Jul 21, 2018
4958501
test: remove timeout from test-pipe-stream
addaleax Jul 16, 2018
2a0fa47
doc: do not advise to cancel full CI on onboarding
vsemozhetbyt Jul 25, 2018
254aa83
tools: remove obsolete entries from license
Trott Jul 25, 2018
61ae592
test: remove setTimeout in test-net-connect-unref
conectado Jul 25, 2018
67d7a15
doc: fix typo in releases.md
vbob Jul 26, 2018
62024b6
build: create V8 code cache after script is run
joyeecheung Jun 27, 2018
e0f3d57
build,win,v8: allow precompiling objects-inl.h
joaocgreis Jul 11, 2018
80b5c91
src: add proper MemoryInfoName to wrappers
joyeecheung Jul 22, 2018
baf3027
lib: remove usc-2 encoding
mscdex Jul 25, 2018
1f9570b
doc: add missing worker error
Jul 23, 2018
ce527d9
tools: define xrange() in Python 3
Jul 23, 2018
2f3a28d
src: use available ReqWrap instance for libuv req
maclover7 Jul 26, 2018
e0336b2
src: fix may be uninitialized warning in n-api
mhdawson Jul 19, 2018
b5b7438
dgram: hide _healthCheck() and _stopReceiving()
cjihrig Jul 21, 2018
ae17d18
dgram: hide underscored Socket properties
cjihrig Jul 21, 2018
98ef8cf
dgram: make _createSocketHandle() internal only
cjihrig Jul 21, 2018
40fedd3
dgram: add getters/setters for private APIs
cjihrig Jul 21, 2018
98d461e
tools: update ESLint to 5.2.0
hiroppy Jul 23, 2018
337b2df
http2: release request()'s "connect" event listener after it runs
ide Jul 21, 2018
87ed6e6
deps: upgrade npm to 6.2.0
zkat Jul 18, 2018
b520216
tools: update cpplint to check for inline headers
ryzokuken Jun 25, 2018
0151486
tools: patch gyp to avoid xcrun errors
ryzokuken Jun 25, 2018
2c95b96
src: remove calls to deprecated v8 functions (NewFromUtf8)
ryzokuken Jul 21, 2018
6b6a26b
src: use kInternalized instead of kNormal
ryzokuken Jul 21, 2018
2548f75
src: use UTF-8 for naming interfaces in unix
ryzokuken Jul 21, 2018
d91742a
fs: reduce memory retention when streaming small files
addaleax Jul 25, 2018
4510ca3
test: add tests for fs/promises chown functions
May 7, 2018
fe1823d
test: remove custom AsyncHooksTestConfiguration
maclover7 Jul 28, 2018
f4b6031
doc: clarify text about internal module changes
Jul 30, 2018
62fd845
test: improve inspect readability
BridgeAR Jul 2, 2018
b5ae339
doc: add pronouns to readme
not-an-aardvark Jul 31, 2018
02e665c
tools,test: remove unused config hooks
maclover7 Jul 28, 2018
9a88fe4
vm: rename vm.Module to vm.SourceTextModule
devsnek Jul 28, 2018
3d05d82
test: improve assertions in child-process-execsync
bhavayAnand9 Jul 27, 2018
8799f43
http: revert "http: always emit close on req and res"
targos Jul 14, 2018
89f483b
2018-08-01, Version 10.8.0 (Current)
targos Jul 31, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: refactor test-module-loading assertions
When there are three arguments in strictEqual() call and
AssertionError exists, the previous two values are not printed.
This improves debugging messages visibility
when there is a fail.
The messages were removed where the instruction
is self-explanatory.

PR-URL: #21833
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
bpinhosilva authored and targos committed Jul 19, 2018
commit 756dff498ab43775989a2594dd481a4f8d26eaec
40 changes: 17 additions & 23 deletions test/sequential/test-module-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ const backslash = /\\/g;

console.error('load test-module-loading.js');

// assert that this is the main module.
assert.strictEqual(require.main.id, '.', 'main module should have id of \'.\'');
assert.strictEqual(require.main, module, 'require.main should === module');
assert.strictEqual(process.mainModule, module,
'process.mainModule should === module');
assert.strictEqual(require.main.id, '.');
assert.strictEqual(require.main, module);
assert.strictEqual(process.mainModule, module);

// assert that it's *not* the main module in the required module.
require('../fixtures/not-main-module.js');

Expand Down Expand Up @@ -102,12 +101,9 @@ const d2 = require('../fixtures/b/d');
assert.notStrictEqual(threeFolder, three);
}

assert.strictEqual(require('../fixtures/packages/index').ok, 'ok',
'Failed loading package');
assert.strictEqual(require('../fixtures/packages/main').ok, 'ok',
'Failed loading package');
assert.strictEqual(require('../fixtures/packages/main-index').ok, 'ok',
'Failed loading package with index.js in main subdir');
assert.strictEqual(require('../fixtures/packages/index').ok, 'ok');
assert.strictEqual(require('../fixtures/packages/main').ok, 'ok');
assert.strictEqual(require('../fixtures/packages/main-index').ok, 'ok');

{
console.error('test cycles containing a .. path');
Expand Down Expand Up @@ -165,8 +161,7 @@ require.extensions['.test'] = function(module) {

assert.strictEqual(require('../fixtures/registerExt2').custom, 'passed');

assert.strictEqual(require('../fixtures/foo').foo, 'ok',
'require module with no extension');
assert.strictEqual(require('../fixtures/foo').foo, 'ok');

// Should not attempt to load a directory
try {
Expand All @@ -181,13 +176,12 @@ try {
console.error('load order');

const loadOrder = '../fixtures/module-load-order/';
const msg = 'Load order incorrect.';

require.extensions['.reg'] = require.extensions['.js'];
require.extensions['.reg2'] = require.extensions['.js'];

assert.strictEqual(require(`${loadOrder}file1`).file1, 'file1', msg);
assert.strictEqual(require(`${loadOrder}file2`).file2, 'file2.js', msg);
assert.strictEqual(require(`${loadOrder}file1`).file1, 'file1');
assert.strictEqual(require(`${loadOrder}file2`).file2, 'file2.js');
try {
require(`${loadOrder}file3`);
} catch (e) {
Expand All @@ -197,9 +191,10 @@ try {
else
assert.ok(/file3\.node/.test(e.message.replace(backslash, '/')));
}
assert.strictEqual(require(`${loadOrder}file4`).file4, 'file4.reg', msg);
assert.strictEqual(require(`${loadOrder}file5`).file5, 'file5.reg2', msg);
assert.strictEqual(require(`${loadOrder}file6`).file6, 'file6/index.js', msg);

assert.strictEqual(require(`${loadOrder}file4`).file4, 'file4.reg');
assert.strictEqual(require(`${loadOrder}file5`).file5, 'file5.reg2');
assert.strictEqual(require(`${loadOrder}file6`).file6, 'file6/index.js');
try {
require(`${loadOrder}file7`);
} catch (e) {
Expand All @@ -208,10 +203,9 @@ try {
else
assert.ok(/file7\/index\.node/.test(e.message.replace(backslash, '/')));
}
assert.strictEqual(require(`${loadOrder}file8`).file8, 'file8/index.reg',
msg);
assert.strictEqual(require(`${loadOrder}file9`).file9, 'file9/index.reg2',
msg);

assert.strictEqual(require(`${loadOrder}file8`).file8, 'file8/index.reg');
assert.strictEqual(require(`${loadOrder}file9`).file9, 'file9/index.reg2');
}

{
Expand Down