Introduce primordials
refactor: introduce primordials (#10939)
Introduce primordialsrefactorintroduce primordials
Committed by lucacasonato
commit message
refactor: introduce primordials (#10939)
This commit introduces primordials to deno_core. Primordials are a
frozen set of all intrinsic objects in the runtime. They are not
vulnerable to prototype pollution.Editor assessment
An exemplar of explaining a concept in place. The subject introduces primordials, and the body defines them crisply - a frozen set of all intrinsic objects in the runtime - and states the security property that motivates them: immunity to prototype pollution. A reader learns a non-obvious idea and its rationale from the message alone. Accurate refactor framing and clean hygiene complete a homepage-worthy example. The definition and the security rationale together give readers a concept they can carry into every later primordials change.