module: fix bad require.resolve
with option paths for .
and ..
#60281
Annotations
2 errors and 1 notice
Test:
test/parallel/test-require-resolve-opts-paths-relative.js#L7
--- stderr ---
/Users/runner/work/node/node/node/test/common/index.js:991
throw new Error(`Using invalid common property: '${prop}'`);
^
Error: Using invalid common property: 'isMainThread'
at Object.get (/Users/runner/work/node/node/node/test/common/index.js:991:13)
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-require-resolve-opts-paths-relative.js:7:13)
at Module._compile (node:internal/modules/cjs/loader:1723:14)
at Object..js (node:internal/modules/cjs/loader:1888:10)
at Module.load (node:internal/modules/cjs/loader:1458:32)
at Function._load (node:internal/modules/cjs/loader:1275:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)
at node:internal/main/run_main_module:33:47
Node.js v24.0.0-pre
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/node/node/node/test/parallel/test-require-resolve-opts-paths-relative.js
|
Test
Process completed with exit code 2.
|
Post Set up sccache
0% - 0 hits, 0 misses, 0 errors
|
Loading