Skip to content

Instantly share code, notes, and snippets.

@jelkand
Created September 13, 2019 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jelkand/259eb8a9dde65f21950c602866774ced to your computer and use it in GitHub Desktop.
Save jelkand/259eb8a9dde65f21950c602866774ced to your computer and use it in GitHub Desktop.
// usage:
const obj = { foo: 'bar' };
const proxiedObj = attachProxy(obj);
proxiedObj.foo = 'baz';
/* output:
VM192:4 setting value of prop: foo to value: baz obj {foo: "bar"}
VM192:5 console.trace
set @ VM192:5
(anonymous) @ VM217:4
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment