News for hackers. Stuff that matters.
Re:Goodbye, Node.js Buffer by spicykraken on Tuesday October 24, 2023 @11:42AM (#38000732)
What do you mean by "across realms"?

Is that just another way of saying `Uint8Array.prototype.isPrototypeOf` and `instanceof Uint8Array` are not available in all JS environments?

I guess what I'm asking is the definition of a "Javascript Realm" in case I'm thinking it's something different.

Re:Goodbye, Node.js Buffer by mofle on Tuesday October 24, 2023 @12:43PM (#38001704)
https://weizmangal.com/2022/10/28/what-is-a-realm-in-js

Examples of this are frames in the browser and the `vm` module in Node.js.

Re:Goodbye, Node.js Buffer by spicykraken on Tuesday October 24, 2023 @12:56PM (#38001910)
Ah thanks, I thought "realms" sounded familiar and that helps clear things up a bit. Also Lavamoat and SES look really interesting thanks for the link.