How to get proxy's handler from proxy object?
<p>For example, if I have this handler/proxy (from the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy#Examples" rel="noreferrer">MDN example</a>)...</p>

<pre><code>var handler = {
    get: function(target, name){
        return name in target?
            target[name] :
            37;
    }
};

var p = new Proxy({}, handler);
p.a = 1;
p.b = undefined;

console.log(p.a, p.b); // 1, undefined
console.log('c' in p, p.c); // false, 37
</code></pre>

<p>is it possible to probe the proxy, <code>p</code>, in some way that allows me to get the <code>handler</code> object back.</p>

<p>Something along the lines of:</p>

<pre><code>p.__handler__   // returns handler object -&gt; Object {get: handler.get(), set: handler.set(), ...}
p.__handler__.get  // returns get prop/fn of handler -&gt; function(target, name){ ...}
</code></pre>

<p><strong>Obviously, the various traps set up in the handler are still "known" to the proxy, but is there a clear-cut way to return them/ the handler from the proxy itself? If so, how?</strong></p>

<p>I have no specific use-case for this at the moment, but I could see this being useful if you wanted to dynamically change a handler/traps after you already have a proxy.</p>