We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7335793 + f88a226 commit 61d240fCopy full SHA for 61d240f
lib/setup-node-sandbox.js
@@ -330,6 +330,8 @@ function process() {
330
return this;
331
}
332
333
+const baseUptime = localProcess.uptime();
334
+
335
// FIXME wrong class structure
336
global.process = {
337
__proto__: process.prototype,
@@ -354,6 +356,9 @@ global.process = {
354
356
hrtime: function hrtime(time) {
355
357
return localProcess.hrtime(time);
358
},
359
+ uptime: function uptime() {
360
+ return localProcess.uptime() - baseUptime;
361
+ },
362
cwd: function cwd() {
363
return localProcess.cwd();
364
0 commit comments