Questions tagged [javascript-proxy]

36 questions
0
votes
2 answers

Why do set() traps in proxies sometimes trigger a TypeError and sometimes not (both after an invalid write operation)?

tl;dr: I've found that sometimes returning false in a proxy's set() trap doesn't trigger any TypeError, and sometimes it does. Why does this happen? As far as I understand, set() traps in a proxy must return either true or false to denote whether a…
M2K
  • 319
  • 3
  • 11
0
votes
0 answers

Can I find if there is an initialized variable for a particular div id in an html web page?