Repro
import * as os from "node:os";
console.log("UV_UDP_REUSEADDR:", os.constants.UV_UDP_REUSEADDR);
console.log("signals.SIGINT:", os.constants.signals?.SIGINT);
console.log("dlopen.RTLD_LAZY:", os.constants.dlopen?.RTLD_LAZY);
console.log("priority.PRIORITY_NORMAL:", os.constants.priority?.PRIORITY_NORMAL);
Actual (Perry)
UV_UDP_REUSEADDR: undefined
signals.SIGINT: 2
dlopen.RTLD_LAZY: 1
priority.PRIORITY_NORMAL: 0
Expected (Node)
UV_UDP_REUSEADDR: 4
signals.SIGINT: 2
dlopen.RTLD_LAZY: 1
priority.PRIORITY_NORMAL: 0
Impact
Tiny standalone gap left over from #649. The three nested-namespace tables (signals, errno, priority, dlopen) were populated correctly, but os.constants.UV_UDP_REUSEADDR (a top-level constant directly on constants, not inside a nested table) was missed.
Used by code that constructs UDP sockets with SO_REUSEADDR opt — dgram.createSocket({ type: 'udp4', reuseAddr: true }) is the high-level form, but lower-level libraries inline os.constants.UV_UDP_REUSEADDR into option bags.
This is the ONLY remaining os.constants divergence in test-files/test_parity_os.ts — the parity diff is otherwise 1 line off Node. Fix this and test_parity_os reaches full byte-for-byte parity.
Acceptance
The 5-line repro prints UV_UDP_REUSEADDR: 4 matching Node.
Related
Follow-up to #649 (closed). Surfaced via test-files/test_parity_os.ts (diff size = 2, second-smallest in the parity suite).
Repro
Actual (Perry)
Expected (Node)
Impact
Tiny standalone gap left over from #649. The three nested-namespace tables (
signals,errno,priority,dlopen) were populated correctly, butos.constants.UV_UDP_REUSEADDR(a top-level constant directly onconstants, not inside a nested table) was missed.Used by code that constructs UDP sockets with
SO_REUSEADDRopt —dgram.createSocket({ type: 'udp4', reuseAddr: true })is the high-level form, but lower-level libraries inlineos.constants.UV_UDP_REUSEADDRinto option bags.This is the ONLY remaining
os.constantsdivergence intest-files/test_parity_os.ts— the parity diff is otherwise 1 line off Node. Fix this andtest_parity_osreaches full byte-for-byte parity.Acceptance
The 5-line repro prints
UV_UDP_REUSEADDR: 4matching Node.Related
Follow-up to #649 (closed). Surfaced via
test-files/test_parity_os.ts(diff size = 2, second-smallest in the parity suite).