Last active
November 12, 2017 19:33
-
-
Save gskachkov/33d2431399be77aaf9407260c6a901c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const metaHandler = { | |
get: function (dt, trapName) { | |
console.log(dt, trapName); | |
return Reflect[trapName]; | |
} | |
}; | |
const dummyTarget = {}; | |
const baseHandler = new Proxy(dummyTarget, metaHandler); | |
const target = {}; | |
const proxy = new Proxy(target, baseHandler); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment