-
-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
performance
still breaks in Node 15
#732
performance
still breaks in Node 15
#732
Comments
performance
still breaks in Node 15
We're experiencing a similar problem not in Node but using LiquidJS as a WASM module compiled with Javy which doesn't seem to have access to monotonic timers out of the box. The only easy fix I found was to define a |
I guess, one solution is to use something like const startupTime = globalThis.performance ? 0 : (globalThis.Date?.now() ?? 0);
const now = () => {
if(globalThis.performance){
return globalThis.performance.now();
}
const current = globalThis.Date?.now() ?? 0;
return current - startupTime;
} and then we can drop the |
@vrugtehagel agreed. We can fallback to
I can run jest locally with Node@15, I'll try include it on CI. |
## [10.16.3](v10.16.2...v10.16.3) (2024-08-16) ### Bug Fixes * support for NodeJS 15, fixes [#732](#732) ([4548c11](4548c11))
🎉 This issue has been resolved in version 10.16.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
A followup on #728.
The PR I opened today (#729) did resolve this issue for Node 14, but unfortunately, Node 15 still throws an error due to the
node:
prefix in the import.The text was updated successfully, but these errors were encountered: