[v20.x backport] src: move package_json_reader cache to c++ #57839
Annotations
2 errors
test-linux:
test/sequential/test-module-loading.js#L129
--- stderr ---
load test-module-loading.js
load fixtures/b/d.js
load package/index.js
load fixtures/b/c.js
load fixtures/a.js
test index.js modules ids and relative loading
test index.js in a folder with a trailing slash
node:assert:758
throw err;
^
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^SyntaxError: Error parsing/. Input:
'Error: Invalid package config /home/runner/work/node/node/test/fixtures/packages/unparseable/package.json.'
at Object.<anonymous> (/home/runner/work/node/node/test/sequential/test-module-loading.js:129:8)
at Module._compile (node:internal/modules/cjs/loader:1357:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1415:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:181:12)
at node:internal/main/run_main_module:28:49 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: Invalid package config /home/runner/work/node/node/test/fixtures/packages/unparseable/package.json.
at read (node:internal/modules/package_json_reader:110:33)
at readPackage (node:internal/modules/package_json_reader:128:10)
at tryPackage (node:internal/modules/cjs/loader:431:36)
at Module._findPath (node:internal/modules/cjs/loader:715:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1232:19)
at require (node:internal/modules/helpers:179:18)
at /home/runner/work/node/node/test/sequential/test-module-loading.js:130:16
at getActual (node:assert:765:5) {
code: 'ERR_INVALID_PACKAGE_CONFIG'
},
expected: /^SyntaxError: Error parsing/,
operator: 'throws'
}
Node.js v20.14.1-pre
--- stdout ---
b/c.js exit
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/sequential/test-module-loading.js
|
test-linux
Process completed with exit code 2.
|