-
Notifications
You must be signed in to change notification settings - Fork 187
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
wasm_js: remove the separate codepath for Node.js and TLS caching #557
Conversation
Ah, I thought you are going to merge #541 first. |
I thought that when you wrote "Sure, I'm a fan of splitting things up." you meant that we should continue with this PR. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are also some Node.js related leftovers on the Error
type.
I thought that when you wrote "Sure, I'm a fan of splitting things up." you meant that we should continue with this PR. :)
Apologies, I probably didn't read carefully enough. I understood it just as a follow-up, not a replacement.
Co-authored-by: daxpedda <[email protected]>
Co-authored-by: daxpedda <[email protected]>
We entirely forgot the whole |
Acquire of "global" objects is relatively cheap (adds ~40 ns of overhead), so it make sense to do it on each call instead of trying to cache objects in a TLS variable.
Additionally, removes the separate codepath for Node.js since it fully supports the Web Crypto API since v19 (released 2022-10-18).