unjs / unenv

๐Ÿ•Š๏ธ Convert javaScript code to be runtime agnostic
MIT License
348 stars 18 forks source link

fix(node:crypto): bind crypto functions to avoid `Illegal invocation` error #134

Closed brendonmatos closed 10 months ago

brendonmatos commented 11 months ago

๐Ÿ”— Linked issue

133

โ“ Type of change

๐Ÿ“š Description

This fixes TypeError: Illegal invocation on Cloudflare Workers

๐Ÿ“ Checklist