Files
node/test/fixtures
Matheus Marchini 2e3dc12ebd test: workaround for V8 8.1 inspector pause issue
`test-inspector-multisession-ws` and `test-inspector-break-when-eval`
will be affected by an upstream bug when we upgrade V8 to 8.1. The bug
is caused when the Inspector sets a pause at the start of a function
compiled with `CompileFunctionInContext`, but that function hasn't been
executed yet.

On both tests, this issue is triggered by pausing while in C++ executing
LookupAndCompile, which is called by requiring internal modules while
running `console.log`. To eliminate this issue in both tests, we add an
extra `console.log` to ensure we only pause we required all internal
modules we need. On `test-inspector-break-when-eval`, we also need to
start the child process with `--inspect-brk` instead of `--inspect` to
ensure the test is predictable (this test would occasianlly fail on
slower machines, when console.log doesn't run fast enough to finish
after emitting `Runtime.consoleAPICalled` and before the parent process
sending `Runtime.evaluate` message.

Ref: https://bugs.chromium.org/p/v8/issues/detail?id=10287

PR-URL: https://github.com/nodejs/node/pull/32234
Refs: https://bugs.chromium.org/p/v8/issues/detail?id=10287
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2020-03-16 00:23:53 +00:00
..
2017-03-10 11:23:48 -08:00
2019-07-05 22:39:22 -07:00
2020-01-03 01:44:54 +01:00
2020-01-23 05:22:36 -08:00
2019-09-13 20:27:18 +02:00
2017-03-10 11:23:48 -08:00
…
2019-01-10 09:00:17 -05:00
…
…
2017-05-19 15:22:44 -04:00
2017-05-19 15:22:44 -04:00
…
2018-01-16 23:44:27 +01:00
2019-01-05 21:36:47 +01:00
…
…
…
2019-01-08 12:57:24 -06:00
2019-01-08 12:57:24 -06:00
2019-01-08 12:57:24 -06:00
2017-06-06 23:33:56 -07:00
…
…