GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v9.9.0 proposal by targos · Pull Request #19428 · nodejs/node

Conversation

@targos

@targos targos commented Mar 18, 2018 •
edited by MylesBorins
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

2018-03-21, Version 9.9.0 (Current), @MylesBorins prepared by @targos

Notable Changes

  • assert:
    • From now on all error messages produced by assert in strict mode will produce a error diff. (Ruben Bridgewater) #17615
    • From now on it is possible to use a validation object in throws instead of the other possibilities. (Ruben Bridgewater) #17584
  • crypto:
    • allow passing null as IV unless required (Tobias Nießen) #18644
  • fs:
    • support as and as+ flags in stringToFlags() (Sarat Addepalli) #18801
  • tls:
    • expose Finished messages in TLSSocket (Anton Salikhmetov) #19102
  • tty:
    • Add getColorDepth function to determine if terminal supports colors. (Ruben Bridgewater) #17615
  • util:
    • add util.inspect compact option (Ruben Bridgewater) #17576
  • Added new collaborators
    • watson Thomas Watson

Commits

  • [acc86ed246] - 2018-03-XX, Version 9.9.0 (Current) (Michaël Zasso)
  • [8d33e5c214] - assert: improve error check (Ruben Bridgewater) #17574
  • [5e6b42ec9c] - assert: show proper differences (Ruben Bridgewater) #18611
  • [9abbb6b857] - assert: fix infinite loop (Ruben Bridgewater) #18611
  • [e9ac468146] - assert: fix throws trace (Ruben Bridgewater) #18595
  • [d3c2534bbe] - assert: use destructuring for errors (Ruben Bridgewater) #18247
  • [5aa3a2d172] - (SEMVER-MINOR) assert: improve error messages (Ruben Bridgewater) #17615
  • [f96ea47cf5] - assert: fix strict regression (Ruben Bridgewater) #17903
  • [ebd60fa505] - (SEMVER-MINOR) assert: .throws accept objects (Ruben Bridgewater) #17584
  • [612ba1a3f0] - (SEMVER-MINOR) assert: improve assert.throws (Ruben Bridgewater) #17585
  • [24aeca7dd5] - assert: fix throws and doesNotThrow stack frames (Ruben Bridgewater) #17703
  • [db73d1c13b] - assert: use object argument in innerFail (Ruben Bridgewater) #17582
  • [bae5de1949] - (SEMVER-MINOR) assert: add strict functionality export (Ruben Bridgewater) #17002
  • [f0f31d080a] - async_hooks: add copyHooks function (Daniel Bevenius) #19391
  • [71b1c7f79f] - async_hooks: don't set hook_fields[kTotals] to 0 (Daniel Bevenius) #19219
  • [530b8a4077] - benchmark: fix benchmark for url (Sergey Golovin) #19084
  • [563bed00f5] - benchmark,lib,test,tools: use consistent quotes (Rich Trott) #19156
  • [3f7c4eea04] - build: do not cd on vcbuild help (Vse Mozhet Byt) #19291
  • [5a1437cdbd] - build: update arm64 minimum supported platform (Gibson Fahnestock) #19164
  • [07845fc19e] - console: port errors to new system (Ruben Bridgewater) #18857
  • [03c321a713] - (SEMVER-MINOR) crypto: allow passing null as IV unless required (Tobias Nießen) #18644
  • [044995e546] - crypto: use bool over int consistently (Tobias Nießen) #19238
  • [36f664ef9a] - deps: V8: backport 596d55a from upstream (Myles Borins) #19477
  • [5966b8cc06] - deps: v8: cherry-pick fixes for v8:7535 (Flarna) #19333
  • [cb732aeda4] - doc: enable eslint prefer-template rule (Ruben Bridgewater) #18831
  • [ff82acb95a] - doc: update buffer examples (Ruben Bridgewater) #18758
  • [a4c28d77f7] - doc: fix deprecation removed by mistake (Michaël Zasso) #19482
  • [b229912f6f] - doc: do not announce obvious examples (Rich Trott) #19270
  • [c1fa0926e3] - doc: fix typos on n-api (Kyle Robinson Young) #19385
  • [99e6734f19] - doc: improve best practices in onboarding-extras (Rich Trott) #19315
  • [5a56327e79] - doc: fix minor issues in async_hooks.md (Rich Trott) #19313
  • [5da3ee7719] - doc: clarify default TLS handshake timeout (Rich Trott) #19290
  • [7f652c2bcc] - doc: update username and email (Yuta Hiroto) #19338
  • [e247f19ac3] - doc: improve style guide text (Rich Trott) #19269
  • [c9b12f302a] - doc: remove superfluous text in onboarding-extras (Rich Trott) #19247
  • [6c5afebf55] - doc: make caveat in stream.md more concise (Rich Trott) #19251
  • [8e88a180b9] - doc: add warning to assert.doesNotThrow() (Ruben Bridgewater) #18699
  • [a04e4ae5e4] - doc: remove confusing "cats" from style guide (Rich Trott) #19246
  • [7c3617558e] - doc: remove superfluous adverb from style guide (Rich Trott) #19246
  • [d117f5ff22] - doc: remove warning against readable/readable.read (Rich Trott) #19193
  • [5c21d16c31] - doc: add watson to collaborators (Thomas Watson) #19234
  • [9557e66ae1] - doc: update labels info in onboarding-extras.md (Rich Trott) #19160
  • [84acb9fae5] - doc: add inspector usage example (Ali Ijaz Sheikh) #19172
  • [27088cfaa7] - doc: improve onboarding instructions (Joyee Cheung) #19108
  • [9ec0eab019] - doc: make suggestion more direct in stream.md (Rich Trott) #19124
  • [968b867bf2] - doc: document asserts Weak(Map|Set) behavior (Ruben Bridgewater) #18248
  • [745709396c] - (SEMVER-MINOR) doc: improve .throws RegExp info (Ruben Bridgewater) #17585
  • [5a78c6c0a6] - (SEMVER-MINOR) doc: improve assert documentation (Ruben Bridgewater) #17002
  • [f4f0266bfe] - errors: add comments about falsy error types (Ruben Bridgewater) #18857
  • [ffa16aad60] - errors: update all internal errors (Ruben Bridgewater) #18857
  • [d57a2421fc] - errors: implement new error handling (Ruben Bridgewater) #18857
  • [607b33cfcc] - (SEMVER-MINOR) fs: support as and as+ flags in stringToFlags() (Sarat Addepalli) #18801
  • [b01bd800c6] - fs: fix createReadStream(…, {end: n}) for non-seekable fds (Anna Henningsen) #19329
  • [3914e97741] - http2: fixes error handling (Matteo Collina) #19232
  • [3bf69cd3e7] - http2: some general code improvements (James M Snell) #19400
  • [4277635bed] - http2: clean up Http2Settings (James M Snell) #19400
  • [42b6d801dc] - http2: don't aggressively inline (James M Snell) #19400
  • [89fbbc48ff] - http2: simplify timeout tracking (Anna Henningsen) #19206
  • [f06622cd56] - lib: define printErr() in script string (cjihrig) #19285
  • [b35eabb837] - lib: handle throw undefined in assert.throws() (Ben Noordhuis) #18029
  • [0e6f720991] - n-api: separate out async_hooks test (Gabriel Schulhof) #19392
  • [528798c3f4] - n-api: add missing exception checking (Michael Dawson) #19362
  • [f679ac19e0] - n-api: resolve promise in test (Gabriel Schulhof) #19245
  • [12f19a6b86] - n-api: update documentation (Gabriel Schulhof) #19078
  • [0c9577edfc] - n-api,test: add int64 bounds tests (Kyle Farnung) #19309
  • [f36521becf] - n-api,test: add a new.target test to addons-napi (Taylor Woll) #19236
  • [5b12d3a58e] - net: do not inherit the no-half-open enforcer (Luigi Pinca) #18974
  • [a9bd8bff8a] - path: remove redundant function (Sergey Golovin) #19237
  • [55f7bbb0bd] - repl: refactor code for readability (Ruben Bridgewater) #17919
  • [6997af7378] - repl: upper case comments first char (Ruben Bridgewater) #17919
  • [3e6858e4a7] - repl: better handling of recoverable errors (Prince J Wesley) #18915
  • [49391a70e1] - src: fix util abort (Ruben Bridgewater) #19223
  • [1ba1861731] - src: remove unused using declarations async_wrap (Daniel Bevenius) #18893
  • [8757799d69] - src: remove unused stdlib.h include (Daniel Bevenius) #19427
  • [da62c5ca68] - src: fix minor typo in comment stream_base.h (Daniel Bevenius) #19429
  • [43c482b9c8] - src: fix indentation of params in env-inl.h (Daniel Bevenius) #19390
  • [054dd28da6] - src: make AsyncWrap constructors delegate (Daniel Bevenius) #19366
  • [7a3d1d205e] - src: remove unused uv.h include from async_wrap.cc (Daniel Bevenius) #19342
  • [126a161928] - src: fix indenting of wrap->EmitTraceEventBefore (Daniel Bevenius) #19340
  • [03fb817a1d] - src: add extractPromiseWrap function (Daniel Bevenius) #19340
  • [e208282f68] - src: refactor emit before/after/promiseResolve (Daniel Bevenius) #19295
  • [49481d0e3b] - src: add convenience ctor for async trigger id scope (Anna Henningsen) #19204
  • [4b9914a318] - src: avoid duplicate Before/AtExitCallback structs (Daniel Bevenius) #19226
  • [27754c5408] - src: add incr/decr operators for Reference (Daniel Bevenius) #19083
  • [64f646269a] - src: use smart pointer in AsyncWrap::WeakCallback (Daniel Bevenius) #19168
  • [152c931f53] - stream: make Duplex inherits from DuplexBase (Luigi Pinca) #18974
  • [9c0c0e68ac] - stream: add no-half-open enforcer only if needed (Luigi Pinca) #18953
  • [1eac1d7d85] - test: minor refactoring (Ruben Bridgewater) #18669
  • [574d061c3c] - test: remove assert.doesNotThrow() (Ruben Bridgewater) #18669
  • [5478746203] - test: refactor assert test (Ruben Bridgewater) #18610
  • [4e9279df5c] - test: remove NodeTestFixture from Env constructor (Daniel Bevenius) #18558
  • [22b8f9fba6] - test: introduce SetUpTestCase/TearDownTestCase (Daniel Bevenius) #18558
  • [519850f21e] - test: http2 client setNextStreamID errors (Trivikram) #18848
  • [e3ce084f7c] - test: fix flaky test-http2-ping-flood (Rich Trott) #19395
  • [7df6d9ddc8] - test: rename regression tests file names (Ujjwal Sharma) #19332
  • [f49042131a] - test: use descriptive names for regression tests (Ujjwal Sharma) #19275
  • [01749f07bd] - test: fix flaky test-http2-settings-flood (Rich Trott) #19349
  • [9aa5090689] - test: fix test-cluster-send-handle-large-payload (Rich Trott) #19311
  • [11a0ef566a] - test: delete test/parallel/test-regress-GH-4948 (Ujjwal Sharma) #19279
  • [be20914958] - test: shared lib build doesn't handle SIGPIPE (Yihong Wang) #19211
  • [f84f548986] - test: fix assertion argument order (Rich Trott) #19264
  • [84ae59e5f8] - test: fix path in doctool/test-doctool-json (Vse Mozhet Byt) #19287
  • [b8ca616baa] - test: fix compiler warnings in callback-scope (Daniel Bevenius) #19252
  • [d3bc72e9cc] - test: name test files appropriately (Ujjwal Sharma) #19212
  • [f0c8f6969f] - test: fix test-abort-backtrace in shared lib build (Yihong Wang) #19213
  • [e4c320e5d7] - test: Remove unnecessary asserion messages in test-crypto-hash.js (Piotr Grzesik) #18984
  • [411f3e03fe] - test: remove flaky status for test-npm-install (Rich Trott) #19216
  • [a4a4819954] - test: do not check text for engine-generated error (Rich Trott) #19215
  • [38eb432260] - test: refactor http-https-default-ports (Ken Lin) #19130
  • [0ece7cc227] - test: rename test-regress-io.js remote debuging is EXTREMELY slow compared to Node.js 0.10 #877.js (Ujjwal Sharma) #19161
  • [636a5f627e] - test: rename test-regress-Chunked stdout/stderr drops writes if terminated early. #784.js (Ujjwal Sharma) #19161
  • [c0c6d5848f] - test: address nits and rename the corresponding fixture (Ujjwal Sharma) #19161
  • [22484e1fb2] - test: rename tests to remove "regress" keyword (Ujjwal Sharma) #19161
  • [2262a34f0b] - test: rename test-regress-test: move ArrayStream to common #4027 (Ujjwal Sharma) #19161
  • [bdbfc0e20e] - test: rename test-regress-test: use platform-based timeout for reliability #4015 (Ujjwal Sharma) #19161
  • [da44c2ccf0] - test: rename test-regress-TSC needs to elect a board representative. #1697 (Ujjwal Sharma) #19161
  • [fa43d2f69e] - test: rename test-regress-Add more robust option parsing [WIP] #1726 (Ujjwal Sharma) #19161
  • [46b5915dab] - test: skip postmortem metadata test when nm fails (Joyee Cheung) #19107
  • [16ab3b54d1] - test: address unreliable test-performance (Rich Trott) #19228
  • [1e5c7e3e47] - test: refactor common.expectsError (Ruben Bridgewater) #17703
  • [060216689a] - (SEMVER-MINOR) tls: expose Finished messages in TLSSocket (Anton Salikhmetov) #19102
  • [b04dd7b351] - tools: enable eslint one-var rule (Ruben Bridgewater) #18831
  • [d4d7df8371] - tools: enable eslint strict key-spacing (Ruben Bridgewater) #18831
  • [9e10ddc215] - tools: enable eslint no-undef-init rule (Ruben Bridgewater) #18831
  • [9d1e409ee3] - tools: enable no-unsafe-finally (Ruben Bridgewater) #18745
  • [d7958657d7] - tools: add assert.doesNotThrow eslint rule (Ruben Bridgewater) #18669
  • [66694e28b1] - tools: fix test-npm-package (Michaël Zasso) #19293
  • [9613e02ff7] - tools,bootstrap: preprocess gypi files to json (Gus Caplan) #19140
  • [74f0d1aa60] - (SEMVER-MINOR) tty: refactor to es6 (Ruben Bridgewater) #17615
  • [ead727c274] - (SEMVER-MINOR) tty: add getColorDepth function (Ruben Bridgewater) #17615
  • [072adfea8c] - url: replace "magic" numbers by constants (Sergey Golovin) #19035
  • [c18ac52970] - (SEMVER-MINOR) util: add util.inspect compact option (Ruben Bridgewater) #17576
  • [ce3a5af69f] - (SEMVER-MINOR) util: rename util.inspect argument (Ruben Bridgewater) #17576
  • [fd4c05ab56] - (SEMVER-MINOR) util: fix custom inspect description (Ruben Bridgewater) #17576

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss, MylesBorins, and LitoMore reacted with thumbs up emoji addaleax, bricss, MylesBorins, and LitoMore reacted with hooray emoji bricss, MylesBorins, and LitoMore reacted with heart emoji
All reactions
  • 👍 3 reactions
  • 🎉 4 reactions
  • ❤️ 3 reactions
@BridgeAR @MylesBorins
doc: improve assert documentation
5a78c6c
1) Separate all loose and strict functions.
2) Stronger outline the used comparison rules in (not)deepStrictEqual
3) Fix SameValue comparison info

Backport-PR-URL: #19230
PR-URL: #17002
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs involving general changes in the lib/ or src/ directories. v9.x labels Mar 18, 2018
@targos
targos force-pushed the v9.9.0-proposal branch from 06c6880 to a740b42 Compare March 18, 2018 13:52
@targos

targos commented Mar 18, 2018

Copy link
Copy Markdown
Member Author

This is the first time I prepare a release. Please tell me if something is wrong :)

/cc @nodejs/release

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Mar 18, 2018

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/13728/
CITGM with this PR: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1335/
CITGM with v9.x: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1336/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos removed the lib / src Issues and PRs involving general changes in the lib/ or src/ directories. label Mar 18, 2018
@targos

targos commented Mar 18, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

The linter issue is because of a missing link in doc/api/deprecations.md.
The deprecation entry containing it was removed (I suppose by mistake) in a6615a2.

/cc @BridgeAR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

BridgeAR and others added 22 commits March 20, 2018 11:33
@BridgeAR @MylesBorins
assert: add strict functionality export
bae5de1
Requireing the strict version will allow to use `assert.equal`,
`assert.deepEqual` and there negated counterparts to be used with
strict comparison instead of using e.g. `assert.strictEqual`.

The API is identical to the regular assert export and only differs
in the way that all functions use strict compairson.

Backport-PR-URL: #19230
PR-URL: #17002
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@BridgeAR @MylesBorins
assert: use object argument in innerFail
db73d1c
Right now it is difficult to know what argument stands for what
property. By refactoring the arguments into a object it is clear
what stands for what.

Backport-PR-URL: #19230
PR-URL: #17582
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
@BridgeAR @MylesBorins
assert: fix throws and doesNotThrow stack frames
24aeca7
The stack frames from .throws and .doesNotThrow got included
even though that was not intended.

Backport-PR-URL: #19230
PR-URL: #17703
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@BridgeAR @MylesBorins
test: refactor common.expectsError
1e5c7e3
A combination of try catch and common.expectsError is not necessary
as the latter already does everything on its own.

Backport-PR-URL: #19230
PR-URL: #17703
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@BridgeAR @MylesBorins
assert: improve assert.throws
612ba1a
Throw a TypeError in case a error message is provided in the second
argument and a third argument is present as well.
This is clearly a mistake and should not be done.

Backport-PR-URL: #19230
PR-URL: #17585
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
@BridgeAR @MylesBorins
doc: improve .throws RegExp info
7457093
It was not clear why the error name is actually also tested for when
using a regular expression. This is now clarified.

Backport-PR-URL: #19230
PR-URL: #17585
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
@BridgeAR @MylesBorins
assert: .throws accept objects
ebd60fa
From now on it is possible to use a validation object in throws
instead of the other possibilites.

Backport-PR-URL: #19230
PR-URL: #17584
Refs: #17557
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Ron Korving <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
@BridgeAR @MylesBorins
assert: fix strict regression
f96ea47
Using `assert()` or `assert.ok()` resulted in a error since a
refactoring.

Refs: #17582

Backport-PR-URL: #19230
PR-URL: #17903
Refs: #17582
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@bnoordhuis @MylesBorins
lib: handle throw undefined in assert.throws()
b35eabb
And make `assert.doesNotThrow()` handle it as well.

Backport-PR-URL: #19230
PR-URL: #18029
Fixes: #18027
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@BridgeAR @MylesBorins
util: fix custom inspect description
fd4c05a
Using a custom inspect function on the inspected object is
deprecated. Remove the reference from the option description
to make sure the user will read about the deprecation in the
more detailed description.

Backport-PR-URL: #19230
PR-URL: #17576
Reviewed-By: Anna Henningsen <[email protected]>
@BridgeAR @MylesBorins
util: rename util.inspect argument
ce3a5af
util.inspect can actually receive any property and the description
was wrong so far. This fixes it by renaming the argument to
value and also updating the description.

Backport-PR-URL: #19230
PR-URL: #17576
Reviewed-By: Anna Henningsen <[email protected]>
@BridgeAR @MylesBorins
util: add util.inspect compact option
c18ac52
The current default formatting is not ideal and this improves
the situation by formatting the output more intuitiv.

1) All object keys are now indented by 2 characters instead of
   sometimes 2 and sometimes 3 characters.
2) Each object key will now use an individual line instead of
   sharing a line potentially with multiple object keys.
3) Long strings will now be split into multiple lines in case
   they exceed the "lineBreak" option length (including the
   current indentation).
4) Opening braces are now directly behind a object property
   instead of using a new line.
5) Switch inspect "base" order. In case the compact option is set
   to `false`, inspect will now print
     "[Function: foo] {\n  property: 'data'\n}"
   instead of
     "{ [Function: foo]\n  property: 'data'\n}".

Backport-PR-URL: #19230
PR-URL: #17576
Reviewed-By: Anna Henningsen <[email protected]>
@BridgeAR @MylesBorins
assert: improve error messages
5aa3a2d
From now on all error messages produced by `assert` in strict mode
will produce a error diff.

Backport-PR-URL: #19230
PR-URL: #17615
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@BridgeAR @MylesBorins
tty: add getColorDepth function
ead727c
Right now it is very difficult to determine if a terminal supports
colors or not. This function adds this functionality by detecting
environment variables and checking process.

Backport-PR-URL: #19230
PR-URL: #17615
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@BridgeAR @MylesBorins
tty: refactor to es6
74f0d1a
Backport-PR-URL: #19230
PR-URL: #17615
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@BridgeAR @MylesBorins
assert: use destructuring for errors
d3c2534
Destructure the necessary Error classes from internal/errors.
This improves the readability of the error creation.

Backport-PR-URL: #19230
PR-URL: #18247
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@BridgeAR @MylesBorins
assert: fix throws trace
e9ac468
The current stack trace thrown in case `assert.throws(fn, object)`
is used did not filter the stack trace. This fixes it.

Backport-PR-URL: #19230
PR-URL: #18595
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
@BridgeAR @MylesBorins
doc: document asserts Weak(Map|Set) behavior
968b867
Right now it is not documentated that WeakMap entries are not
compared. This might result in some confusion. This adds a note
about the behavior in `assert.deepStrictEqual`. This documentation
is also references in `util.isDeepStrictEqual`, so we do not have
to document it again for that function as the underlying algorithm
is the same.

Backport-PR-URL: #19230
PR-URL: #18248
Fixes: #18228
Refs: #18228
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@BridgeAR @MylesBorins
assert: fix infinite loop
9abbb6b
In rare cirumstances it is possible to get a identical error diff.
In such a case the advances diffing runs into a infinite loop.
This fixes it by properly checking for extra entries.

Backport-PR-URL: #19230
PR-URL: #18611
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@BridgeAR @MylesBorins
assert: show proper differences
5e6b42e
Right now it is possible to get an AssertionError from input that has
the customInspect function set to always return the same value.

That way the error message is actually misleading because the output
is going to look the same. This fixes it by deactivating the custom
inspect function.

Backport-PR-URL: #19230
PR-URL: #18611
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@Trott @MylesBorins
test: address unreliable test-performance
16ab3b5
test-performance can fail due to resource constraints. Move it from
parallel to sequential so it does not compete with other tests for
resources.

Fixes: #19197

PR-URL: #19228
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@addaleax @MylesBorins
fs: fix createReadStream(…, {end: n}) for non-seekable fds
b01bd80
82bdf8f fixed an issue by silently modifying the `start`
option for the case when only `end` is passed, in order to perform
reads from a specified range in the file.

However, that approach does not work for non-seekable files, since
a numeric `start` option means that positioned reads will be used
to read data from the file.

This patch fixes that, and instead ends reading after a specified
size by adjusting the read buffer size.

This way we avoid re-introducing the bug that 82bdf8f fixed,
and align behaviour with the native file stream mechanism
introduced in #18936 as well.

PR-URL: #19329
Fixes: #19240
Refs: #18121
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Chen Gang <[email protected]>
@targos

targos commented Mar 21, 2018

Copy link
Copy Markdown
Member Author

New CI: https://ci.nodejs.org/job/node-test-pull-request/13799/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MylesBorins and others added 21 commits March 21, 2018 10:15
@MylesBorins
deps: V8: backport 596d55a from upstream
36f664e
Did not remove ActivationsFinder from `src/runtime/runtime-compiler.cc`
as in the original commit as the Class is still being used prior to
f0acede landing

Original Commit Message:

    Deoptimization and multithreading.

    When using Lockers and Unlockers it is possible to create a
    scenario where multiple threads point to the same optimized
    code object. When that happens, if one of the threads triggers
    deoptimization, then the stack replacement needs to happen in
    the stacks of all threads.
    With this CL, the deoptimizer visits all threads to do so.
    The CL also adds three tests where V8 used to crash due to this
    issue.

    Bug: v8:6563
    Change-Id: I74e9af472d4833aa8d13e579df45133791f6a503
    Reviewed-on: https://chromium-review.googlesource.com/670783
    Reviewed-by: Jaroslav Sevcik <[email protected]>
    Commit-Queue: Juliana Patricia Vicente Franco <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#48060}

PR-URL: #19477
Fixes: #19274
Refs: v8/v8@596d55a
Refs: v8/v8@f0acede
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Yang Guo <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Benedikt Meurer <[email protected]>
@danbev @MylesBorins
test: introduce SetUpTestCase/TearDownTestCase
22b8f9f
This commit add SetUpTestCase and TearDownTestCase functions that will
be called once per test case. Currently we only have SetUp/TearDown
which are called for each test.

This commit moves the initialization and configuration of Node and V8 to
be done on a per test case basis, but gives each test a new Isolate.

Backport-PR-URL: #19504
PR-URL: #18558
Reviewed-By: Ben Noordhuis <[email protected]>
@danbev @MylesBorins
test: remove NodeTestFixture from Env constructor
4e9279d
Backport-PR-URL: #19504
PR-URL: #18558
Reviewed-By: Ben Noordhuis <[email protected]>
@BridgeAR @MylesBorins
test: refactor assert test
5478746
This adds puctiations to the comments, uses a capital letters for
the first character, removes a few obsolete comments and switches
to assert.ok when suitable.

It also moves all `assert.deepEqual()` and `assert.deepStrictEqual()`
tests to the appropriate file.

Backport-PR-URL: #19244
PR-URL: #18610
Reviewed-By: Joyee Cheung <[email protected]>
@BridgeAR @MylesBorins
test: remove assert.doesNotThrow()
574d061
There is actually no reason to use `assert.doesNotThrow()` in the
tests. If a test throws, just let the error bubble up right away
instead of first catching it and then rethrowing it.

Backport-PR-URL: #19244
PR-URL: #18669
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@BridgeAR @MylesBorins
test: minor refactoring
1eac1d7
Add punctuation and comments about code that should not throw.
Also remove a obsolete test and refactor some tests.

Backport-PR-URL: #19244
PR-URL: #18669
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@BridgeAR @MylesBorins
tools: add assert.doesNotThrow eslint rule
d795865
Prohibit the usage of `assert.doesNotThrow()`.

Backport-PR-URL: #19244
PR-URL: #18669
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@BridgeAR @MylesBorins
tools: enable no-unsafe-finally
9d1e409
This enables the `no-unsafe-finally` eslint rule to make sure we
have a proper control flow in try / catch.

Backport-PR-URL: #19244
PR-URL: #18745
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@BridgeAR @MylesBorins
doc: update buffer examples
ff82acb
Move the print statements below a console.log call.

Backport-PR-URL: #19244
PR-URL: #18758
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
@BridgeAR @MylesBorins
tools: enable eslint no-undef-init rule
9e10ddc
This also fixes the three entries that did not pass.

Backport-PR-URL: #19244
PR-URL: #18831
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@BridgeAR @MylesBorins
tools: enable eslint strict key-spacing
d4d7df8
Backport-PR-URL: #19244
PR-URL: #18831
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@BridgeAR @MylesBorins
tools: enable eslint one-var rule
b04dd7b
Backport-PR-URL: #19244
PR-URL: #18831
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@BridgeAR @MylesBorins
doc: enable eslint prefer-template rule
cb732ae
Backport-PR-URL: #19244
PR-URL: #18831
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@BridgeAR @MylesBorins
errors: implement new error handling
d57a242
This implements a function based system. Instead of passing in the
error code as first argument, the error code itself is a error class.
It already contains the correct error type, so while adding a new
error no one has to think about the error type anymore. In case a
single error code has more than one error type, the error class has
properties for the non default error types. Those can be used as
fallback.

This prevents typos, makes the implementation easier and it is less
verbose when writing the code for a new error.

The implementation itself does not interfere with the old
implementation. So the old and the new system can co-exist and it is
possible to slowly migrate the old ones to the new system.

Backport-PR-URL: #19244
PR-URL: #18857
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
@BridgeAR @MylesBorins
errors: update all internal errors
ffa16aa
This updates all internal errors to the new error type. While doing
so it removes unused errors.

A few errors currently seem to have the wrong type. To identify them
later, comments were added next to the error type.

Backport-PR-URL: #19244
PR-URL: #18857
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
@BridgeAR @MylesBorins
console: port errors to new system
07845fc
This ports the errors to the new error system.

Backport-PR-URL: #19244
PR-URL: #18857
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
@BridgeAR @MylesBorins
errors: add comments about falsy error types
f4f0266
Some error types are not properly set. This adds comments which
ones are probably falty and to what they should be set instead.

Backport-PR-URL: #19244
PR-URL: #18857
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
@BridgeAR @MylesBorins
repl: upper case comments first char
6997af7
Backport-PR-URL: #19244
PR-URL: #17919
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Lance Ball <[email protected]>
@BridgeAR @MylesBorins
repl: refactor code for readability
55f7bbb
Backport-PR-URL: #19244
PR-URL: #17919
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Lance Ball <[email protected]>
@mcollina @MylesBorins
http2: fixes error handling
3914e97
There should be no default error handling when using Http2Stream.
All errors will end up in `'streamError'` on the server anyway,
but they are emitted on `'stream'` as well, otherwise some error
conditions are impossible to debug.

See: #14991

Backport-PR-URL: #19478
PR-URL: #19232
Reviewed-By: James M Snell <[email protected]>
@MylesBorins
2018-03-21, Version 9.9.0 (Current)
74fb02f
Notable changes:

* assert:
  - From now on all error messages produced by `assert` in strict mode
    will produce a error diff. (Ruben Bridgewater)
    #17615
  - From now on it is possible to use a validation object in throws
    instead of the other possibilities. (Ruben Bridgewater)
    #17584
* crypto:
  - allow passing null as IV unless required (Tobias Nießen)
    #18644
* fs:
  - support as and as+ flags in stringToFlags() (Sarat Addepalli)
    #18801
* tls:
  - expose Finished messages in TLSSocket (Anton Salikhmetov)
    #19102
* tty:
  - Add getColorDepth function to determine if terminal supports colors
    (Ruben Bridgewater) #17615
* util:
  - add util.inspect compact option (Ruben Bridgewater)
    #17576
* **Added new collaborators**
  - [watson](https://github.com/watson) Thomas Watson

PR-URL: #19428
@MylesBorins
MylesBorins force-pushed the v9.9.0-proposal branch from 0c54faf to 74fb02f Compare March 21, 2018 11:24
@MylesBorins

MylesBorins commented Mar 21, 2018

Copy link
Copy Markdown
Contributor

one more set of CI

Ci: https://ci.nodejs.org/job/node-test-pull-request/13806/
V8-CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/1279/
CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1340/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MylesBorins
MylesBorins merged commit 74fb02f into v9.x Mar 21, 2018
MylesBorins added a commit that referenced this pull request Mar 21, 2018
@MylesBorins
Working on v9.9.1
66e0d98
PR-URL: #19428
MylesBorins added a commit that referenced this pull request Mar 21, 2018
@MylesBorins
2018-03-21, Version 9.9.0 (Current)
0fc3592
Notable changes:

* assert:
  - From now on all error messages produced by `assert` in strict mode
    will produce a error diff. (Ruben Bridgewater)
    #17615
  - From now on it is possible to use a validation object in throws
    instead of the other possibilities. (Ruben Bridgewater)
    #17584
* crypto:
  - allow passing null as IV unless required (Tobias Nießen)
    #18644
* fs:
  - support as and as+ flags in stringToFlags() (Sarat Addepalli)
    #18801
* tls:
  - expose Finished messages in TLSSocket (Anton Salikhmetov)
    #19102
* tty:
  - Add getColorDepth function to determine if terminal supports colors
    (Ruben Bridgewater) #17615
* util:
  - add util.inspect compact option (Ruben Bridgewater)
    #17576
* **Added new collaborators**
  - [watson](https://github.com/watson) Thomas Watson

PR-URL: #19428
@MylesBorins MylesBorins mentioned this pull request Mar 21, 2018
blog: release post for v9.9.0 nodejs/nodejs.org#1598
Merged
@gibfahn
gibfahn deleted the v9.9.0-proposal branch March 21, 2018 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@targos @MylesBorins @nodejs-github-bot @BridgeAR @bnoordhuis @Trott @addaleax @lpinca @joyeecheung @ofrobots @danbev @ryzokuken @watson @tniessen @ken23421 @gibfahn @devsnek @princejwesley @pgrzesik @daynin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.