File: system_builtins.patch

package info (click to toggle)
nodejs 22.21.1%2Bdfsg%2B~cs22.19.0-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 251,924 kB
  • sloc: cpp: 1,542,927; javascript: 597,777; ansic: 114,330; python: 60,784; sh: 4,155; makefile: 2,914; asm: 1,750; pascal: 1,565; perl: 248; lisp: 222; xml: 42
file content (37 lines) | stat: -rw-r--r-- 1,452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Use system paths for builtins
Last-Update: 2025-03-15
Forwarded: not-needed
Author: Jérémy Lal <kapouer@melix.org>
--- a/test/parallel/test-process-versions.js
+++ b/test/parallel/test-process-versions.js
@@ -3,8 +3,8 @@
 const assert = require('assert');
 
 // Import of pure js (non-shared) deps for comparison
-const acorn = require('../../deps/acorn/acorn/package.json');
-const cjs_module_lexer = require('../../deps/cjs-module-lexer/src/package.json');
+const acorn = require('/usr/share/nodejs/acorn/package.json');
+const cjs_module_lexer = require('/usr/share/nodejs/cjs-module-lexer/package.json');
 
 const expected_keys = [
   'ares',
@@ -116,7 +116,7 @@
                    process.versions.napi);
 
 if (hasUndici) {
-  const undici = require('../../deps/undici/src/package.json');
+  const undici = require('/usr/share/nodejs/undici/package.json');
   const expectedUndiciVersion = undici.version;
   assert.strictEqual(process.versions.undici, expectedUndiciVersion);
 }
--- a/test/parallel/test-inspector-network-fetch.js
+++ b/test/parallel/test-inspector-network-fetch.js
@@ -12,7 +12,7 @@
 const inspector = require('node:inspector/promises');
 
 // Disable certificate validation for the global fetch.
-const undici = require('internal/deps/undici/undici');
+const undici = require('/usr/share/nodejs/undici');
 undici.setGlobalDispatcher(new undici.EnvHttpProxyAgent({
   connect: {
     rejectUnauthorized: false,