From 6405b5f454e140b0d79b603b0627debd246c7b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 4 Aug 2023 14:31:13 +0200 Subject: fix(node): polyfill process.title (#20044) Closes https://github.com/denoland/deno/issues/19777 --- ext/node/polyfills/process.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ext/node/polyfills') diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts index b0a4d04c8..2f1c2968f 100644 --- a/ext/node/polyfills/process.ts +++ b/ext/node/polyfills/process.ts @@ -364,6 +364,16 @@ class Process extends EventEmitter { return arch; } + get title() { + return "deno"; + } + + set title(_value) { + // NOTE(bartlomieju): this is a noop. Node.js doesn't guarantee that the + // process name will be properly set and visible from other tools anyway. + // Might revisit in the future. + } + /** * https://nodejs.org/api/process.html#process_process_argv * Read permissions are required in order to get the executable route -- cgit v1.2.3