What we talk about when we talk about the JavaScript object model
summary
Pins down the actual engine: every property has a descriptor with keys value, writable, enumerable and configurable so data properties differ from accessor properties (they use get/set instead of value/writable). Demonstrates using Object.getOwnPropertyDescriptor, shows Object.seal sets configurable false, Object.freeze also sets writable false and warns getters aren’t truly frozen and nested objects must be frozen separately. Recommends preferring the Reflect API and links a MDN comparison for exact method differences.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 3:37Property descriptors
- 8:24Getters setters
- 15:31enumerable and configurable
- 18:15objectseal
- 19:07objectfreeze
- 21:01enumerable
related talks
38mExploring the Enigmatic: Navigating JS's Uncharted Realms
23mJavaScript Engines: The Good Parts™
25mObjects in JavaScript
40mA Tale of Types, Classes, and Maps
21mDemystifying Javascript Engines
39mJavascript for people who didn't learn Javascript
24mJavaScript metaprogramming with ES2015 Proxy
54mMetaProgramming with JavaScript
