Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is intentional IIRC. Node is a Javascript runtime, has competitors like Deno with very different APIs. Cloudflare has gone the route of being as close to the ES spec as possible instead of committing to any specific runtime APIs.

For the case at hand, It doesn’t support buffer APIs but supports ArrayBuffers, so you can build on top of it. You can use any off the shelf browserify/buffer shim package to work it around.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: