diff options
Diffstat (limited to 'ext/node/polyfills/process.ts')
-rw-r--r-- | ext/node/polyfills/process.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts index f09d7ceed..f84255814 100644 --- a/ext/node/polyfills/process.ts +++ b/ext/node/polyfills/process.ts @@ -430,6 +430,14 @@ Process.prototype.config = { }, }; +Process.prototype.cpuUsage = function () { + warnNotImplemented("process.cpuUsage()"); + return { + user: 0, + system: 0, + }; +}; + /** https://nodejs.org/api/process.html#process_process_cwd */ Process.prototype.cwd = cwd; |