Skip to content

global.crypto fix for Node 19.0#19

Merged
yusukebe merged 1 commit intohonojs:mainfrom
doge1338:patch-1
Jan 24, 2023
Merged

global.crypto fix for Node 19.0#19
yusukebe merged 1 commit intohonojs:mainfrom
doge1338:patch-1

Conversation

@doge1338
Copy link
Copy Markdown
Contributor

With Node.js 19.0, the Web Crypto API is now accessible directly from the global object. global.crypto is not writable so trying to assign to it crashes the program. This is a simple fix for it.

With Node.js 19.0, the Web Crypto API is now accessible directly from the global object. global.crypto is not writable so trying to assign to it crashes the program. This is a simple fix for it.
@yusukebe
Copy link
Copy Markdown
Member

Hi @doge1338 !

Thanks. This is a good fix! I'll merge it now.

@yusukebe yusukebe merged commit b755dac into honojs:main Jan 24, 2023
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.

2 participants