JavaScript Jabber cover image

Things Coming Down the Pipe From TC39 - JSJ 590

JavaScript Jabber

00:00

Shadow DOM: A Way to Create a Different Global Environment

Shadow realm is a way to be explicit about this, like get similar behavior, but without meeting an ice frame for it. You run script inside the shadow realm. That script gets its own global and gets its own prototypes on the objects. And then you have assurances that they're not polluting your global environment in any unexpected sort of way. So those are the, what is it, five stage three, additions to JavaScript that I wanted to talk about. Like I said, because they're stage three, they're all going to effectively make it unless there's like a last minute surprise or something. We might expect to see them implemented in browsers in a year from now or something like that

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app