JavaScript: Function [[Call]] – ECMA-262 specification contract
summary
Walks the ECMA‑262 steps that create a function object, shows ASTExplorer and Chrome DevTools used to inspect runtime state, and demonstrates that the function’s source text is stored in an internal slot at parse time while its body is not compiled until call, so creation and invocation are distinct. Proves the function’s outer environment is captured at definition (not call), details environment records, execution context frames pushed to the call stack, and that missing return yields undefined.
AI-written summary · about
chapters (8)
- 0:00Introduction to Function [[Call]]
- 3:24ECMAScript conformance basics
- 10:10Source text to function code
- 17:56Lexical environments and closures
- 23:56Function object internals
- 28:50Execution context and call stack
- 37:42Returning values and cleanup
- 41:15Q&A and wrap-up








