Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ext/node): process.uptime works without this #23786

Merged
merged 2 commits into from
May 12, 2024

Conversation

bartlomieju
Copy link
Member

Fixes #23761

@bartlomieju bartlomieju enabled auto-merge (squash) May 12, 2024 22:32
Copy link
Member

@satyarohith satyarohith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

/** https://nodejs.org/api/process.html#processuptime */
uptime() {
return (Date.now() - this.#startTime) / 1000;
return (Date.now() - startTime) / 1000;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline to use performance.now() instead

@satyarohith satyarohith disabled auto-merge May 12, 2024 22:50
@satyarohith satyarohith enabled auto-merge (squash) May 12, 2024 23:09
@satyarohith satyarohith merged commit 03a76f3 into denoland:main May 12, 2024
17 checks passed
bartlomieju added a commit that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error getting process.uptime when called without bound this
2 participants