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

util.types.isKeyObject does not work for KeyObject inputs #6417

Closed
panva opened this issue Oct 11, 2023 · 0 comments · Fixed by #9091
Closed

util.types.isKeyObject does not work for KeyObject inputs #6417

panva opened this issue Oct 11, 2023 · 0 comments · Fixed by #9091
Labels
bug Something isn't working node.js Compatibility with Node.js APIs

Comments

@panva
Copy link
Contributor

panva commented Oct 11, 2023

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

const { privateKey } = require('crypto').generateKeyPairSync('ed25519')
util.types.isKeyObject(privateKey)

What is the expected behavior?

The result of isKeyObject is true for KeyObject instances

What do you see instead?

False is returned instead.

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node.js Compatibility with Node.js APIs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants