Commit Graph

8 Commits

Author SHA1 Message Date
James M Snell
b164a2e3bf
console: add trace-events for time and count
Add the `node.console` trace event category to capture
`console.count()`, `console.countReset()`, `console.time()`,
`console.timeLog()`, and `console.timeEnd()` to the trace
event log.

PR-URL: https://github.com/nodejs/node/pull/23703
Backport-PR-URL: https://github.com/nodejs/node/pull/28840
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2020-03-09 11:08:49 +00:00
Myles Borins
7b76acb6c8
test: fix expectation in test-bootstrap-modules
Refs: https://github.com/nodejs/node/pull/27124
Refs: https://github.com/nodejs/node/pull/25112

PR-URL: https://github.com/nodejs/node/pull/27727
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2019-05-16 14:57:11 -04:00
Ali Ijaz Sheikh
728bc631e5
test: fix expectation in test-bootstrap-modules
PR-URL: https://github.com/nodejs/node/pull/25112
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
2018-12-25 02:17:24 -05:00
Gus Caplan
e872089158
bootstrapper: move internalBinding to NativeModule
internalBinding is used so often that it should just automatically be
available for usage in internals.

PR-URL: https://github.com/nodejs/node/pull/23025
Refs: https://github.com/nodejs/node/commit/2a9eb31
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>

Backport-PR-URL: https://github.com/nodejs/node/pull/23661
Backport-Reviewed-By: Gus Caplan <me@gus.host>
Backport-Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Backport-Reviewed-By: Michaël Zasso <targos@protonmail.com>
Backport-Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Backport-Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-11-29 11:38:30 -05:00
Ruben Bridgewater
77de1beaf0
util: move inspect in separate file
The inspect function became very big and it's better to handle this
in a separate file.

Backport-PR-URL: https://github.com/nodejs/node/pull/23226
PR-URL: https://github.com/nodejs/node/pull/22845
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-10-07 12:11:34 +02:00
Eugene Ostroukhov
1c3a2ebfcf
inspector: enable Inspector JS API in workers
PR-URL: https://github.com/nodejs/node/pull/22769
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-09-25 08:53:37 +02:00
Anna Henningsen
cab8a0bd92
cli: generate --help text in JS
Instead of having a custom, static, hand-written string
that is being printed to stdout when `--help` is present,
generate it in JS when requested.

Backport-PR-URL: https://github.com/nodejs/node/pull/22644
PR-URL: https://github.com/nodejs/node/pull/22490
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2018-09-06 08:53:57 +02:00
Ruben Bridgewater
1ae076b30e
test: add loaded modules test
This makes sure there is no regression by switching to loading
eagerly.

PR-URL: https://github.com/nodejs/node/pull/20567
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2018-05-22 14:13:28 -04:00