根据MDN, handler.set()可以捕获继承的属性分配:
handler.set()
Object.create(proxy)[foo] = bar;
在这种情况下,如何同时监视和允许对继承对象进行本地分配?
javascript proxy inheritance
inheritance ×1
javascript ×1
proxy ×1