From 856eda2f24965dcf6b7d9c5bc8caa1061db512d9 Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Mon, 5 Jan 2026 18:25:45 +0000 Subject: [PATCH] fix(test): update Windows _debugProcess test to match Bun's error message Bun uses a file mapping mechanism for cross-process inspector activation, which produces different error messages than Node.js's native implementation. --- test/js/node/test/parallel/test-debug-process.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/js/node/test/parallel/test-debug-process.js b/test/js/node/test/parallel/test-debug-process.js index 0d10a15e2e..e9edbd2955 100644 --- a/test/js/node/test/parallel/test-debug-process.js +++ b/test/js/node/test/parallel/test-debug-process.js @@ -16,6 +16,7 @@ cp.on('exit', common.mustCall(function() { try { process._debugProcess(cp.pid); } catch (error) { - assert.strictEqual(error.message, 'The system cannot find the file specified.'); + // Bun uses a file mapping mechanism for _debugProcess, so the error message differs from Node.js + assert.match(error.message, /Failed to open debug handler for process \d+/); } }));