โšก

Deep JavaScript: ECMAScript Principles

Not a how-to guide โ€” a why-it-works guide. From Brendan Eich's 10-day design decisions to V8 JIT deoptimization, covering all core ECMAScript mechanisms: type system, prototype chain, execution contexts, closures, event loop, Promise resolution algorithm, ESM module linking. Four-layer structure per chapter serves developers at every level. 35 chapters โ€” the most in-depth ECMAScript internals guide in Chinese.

35
Chapters
Free
Forever
Start Reading →
Table of Contents
Ch01
Built in 10 Days: Brendan Eich's Design Trade-offs and JavaScript's Historical Debt
Ch02
ES1 to ES2027: What Each Version Fixed and the TC39 Stage 0-4 Process
Ch03
How to Read the ECMAScript Spec: Notation, Abstract Operations, Algorithm Steps
Ch04
Source to Execution: The Complete V8 Engine Pipeline
Ch05
8 Language Types and Their Internal Representations
Ch06
ToPrimitive: The Complete Object-to-Primitive Conversion Algorithm
Ch07
Abstract Equality: Deriving All 12 Rules of ==
Ch08
IEEE 754 and Number Precision: The Real Reason 0.1+0.2 Fails
Ch09
BigInt and Symbol: The Design Philosophy Behind Two Special Types
Ch10
String and Unicode: UTF-16, Surrogate Pairs, and Code Point Traps
Ch11
Operator Algorithms: +, delete, in, instanceof, typeof, ?. and ??
Ch12
Property Descriptors: 4 Internal Slots and Object.defineProperty
Ch13
The Prototype Chain: Complete [[Prototype]] Lookup Algorithm
Ch14
Ordinary and Exotic Objects: [[Get]], [[Set]], [[Call]] Internal Methods
Ch15
Proxy and Reflect: 13 Traps and Complete Metaprogramming
Ch16
Execution Context Stack and Realm: Call Stack Structure and Cross-Realm Traps
Ch17
Environment Records and Reference Records: The Complete Scope Chain
Ch18
var, let, const: Spec-Level Differences and the Temporal Dead Zone
Ch19
Closures: The Precise Definition of Function + Lexical Environment
Ch20
this: 5 Binding Rules, Priority Order, and ResolveThisBinding
Ch21
Function Object Internals: [[Call]] vs [[Construct]], arguments, bind, Tail Calls
Ch22
Generators and the Iteration Protocol: Complete Symbol.iterator Implementation
Ch23
Under the Hood of class: ClassDefinitionEvaluation and Private Fields
Ch24
async/await: The Complete Desugaring to Generator Form
Ch25
The Event Loop: Spec-Level Definitions of Job Queue and Task Queue
Ch26
Promises: PromiseCapability and the Resolution Algorithm
Ch27
The Microtask Queue: A Complete Proof of Execution Order
Ch28
Error and Completion Record: Spec Semantics of try/catch/finally
Ch29
SharedArrayBuffer and Atomics: The Memory Model for Multi-threaded JS
Ch30
ESM: Linking, Instantiation, Evaluation Phases and Circular Dependencies
Ch31
Automatic Semicolon Insertion: 7 Rules and Classic Traps
Ch32
Destructuring and Spread: Spec Semantics and Edge Behaviors
Ch33
Iterators and the Iterable Protocol: How for...of Really Works
Ch34
V8 Internals: Hidden Classes, Inline Caches, and JIT Deoptimization
Ch35
Memory Management: Generational GC, WeakRef, and DevTools Memory Profiling

๐Ÿ’ฌ Comments