How do I trap arguments to a target method when using a Proxy object?
There actually is a way to do this, of course! I just hadn’t thought it through thoroughly enough. I can just return a ‘proxy’ function and trap the arguments in there: var test = { doSomething: function() { console.log( arguments.length ); } }; var testProxy = new Proxy( test, { get: function( target, property, receiver … Read more