JavaScript Metaprogramming - ES6 Proxy Use and Abuse
summary
Claims that ES6 Proxy (non-polyfillable, supported in modern browsers and nodejs) plus the Reflect API let code intercept fundamental object ops. Shows real code: a working lazy populate graph proxy that makes reference-based JSON behave like infinitely nested objects, and a prototype-limited seatbelt undefined proxy that turns missing properties into safe callables but fails to install globally because of exotic prototype rules. Demonstrates what runs, what breaks, and why engine support matters.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:40Make your own syntax
- 2:07Make your own operators
- 3:18Introspection
- 3:39Self-modification
- 4:14Intercession
- 7:21Proxies in JavaScript
- 8:52Target
- 9:29Handler
- 10:08Traps
- 11:20Instrumentation
- 12:44Observable objects
- 18:32Naive Approach
- 19:00Proxy Approach
- 21:09Redefining Undefined
- 22:06Seatbelts for JavaScript
related talks
52mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
24mJavaScript metaprogramming with ES2015 Proxy
22mMetaprogramming, ES6 Proxy
54mMetaProgramming with JavaScript
50mMetaprogramming in JavaScript
36mMetaprogramming - A journey into ES6
27mUnlock the Proxy Power (Vue.js)
11mAnything is possible! Unlocking the Nightmarish Power of JavaScript..
