JavaScript Jabber cover image

Things Coming Down the Pipe From TC39 - JSJ 590

JavaScript Jabber

CHAPTER

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

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner