~/talk

JavaScript Metaprogramming - ES6 Proxy Use and Abuse

Talkat JSConf Budapest 2017 · 2017-10-26..10-27· [javascript]
slides:none on file

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

  1. 0:00Intro
  2. 1:40Make your own syntax
  3. 2:07Make your own operators
  4. 3:18Introspection
  5. 3:39Self-modification
  6. 4:14Intercession
  7. 7:21Proxies in JavaScript
  8. 8:52Target
  9. 9:29Handler
  10. 10:08Traps
  11. 11:20Instrumentation
  12. 12:44Observable objects
  13. 18:32Naive Approach
  14. 19:00Proxy Approach
  15. 21:09Redefining Undefined
  16. 22:06Seatbelts for JavaScript
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.