eslint-plugin-total-functions icon indicating copy to clipboard operation
eslint-plugin-total-functions copied to clipboard

New rule: ban Proxy

Open danielnixon opened this issue 1 year ago • 0 comments

const target = {
  a: "hello",
};

const handler = {
  get() {
    return 42;
  },
};

const proxy2 = new Proxy(target, handler);

// Explodes at runtime
proxy2.a.toUpperCase();

danielnixon avatar Mar 14 '23 00:03 danielnixon