mirror of https://github.com/nodejs/node.git
There are several cleanups here that are not just style nits... 1. The `common.isMainThread` was just a passthrough to the `isMainThread` export on the worker_thread module. It's use was inconsistent and just obfuscated the fact that the test file depend on the `worker_threads` built-in. By eliminating it we simplify the test harness a bit and make it clearer which tests depend on the worker_threads check. 2. The `common.isDumbTerminal` is fairly unnecesary since that just wraps a public API check. 3. Several of the `common.skipIf....` checks were inconsistently used and really don't need to be separate utility functions. A key part of the motivation here is to work towards making more of the tests more self-contained and less reliant on the common test harness where possible. PR-URL: https://github.com/nodejs/node/pull/56712 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> |
||
---|---|---|
.. | ||
benchmark.status | ||
test-bechmark-readline.js | ||
test-benchmark-assert.js | ||
test-benchmark-async-hooks.js | ||
test-benchmark-blob.js | ||
test-benchmark-buffer.js | ||
test-benchmark-child-process.js | ||
test-benchmark-cluster.js | ||
test-benchmark-crypto.js | ||
test-benchmark-dgram.js | ||
test-benchmark-dns.js | ||
test-benchmark-domain.js | ||
test-benchmark-es.js | ||
test-benchmark-esm.js | ||
test-benchmark-events.js | ||
test-benchmark-fs.js | ||
test-benchmark-http.js | ||
test-benchmark-http2.js | ||
test-benchmark-mime.js | ||
test-benchmark-misc.js | ||
test-benchmark-module.js | ||
test-benchmark-napi.js | ||
test-benchmark-net.js | ||
test-benchmark-os.js | ||
test-benchmark-path.js | ||
test-benchmark-process.js | ||
test-benchmark-querystring.js | ||
test-benchmark-streams.js | ||
test-benchmark-string_decoder.js | ||
test-benchmark-timers.js | ||
test-benchmark-tls.js | ||
test-benchmark-url.js | ||
test-benchmark-util.js | ||
test-benchmark-v8.js | ||
test-benchmark-validators.js | ||
test-benchmark-vm.js | ||
test-benchmark-websocket.js | ||
test-benchmark-webstreams.js | ||
test-benchmark-worker.js | ||
test-benchmark-zlib.js | ||
testcfg.py |