How to use proxy-polyfill - 1 common examples

To help you get started, we’ve selected a few proxy-polyfill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fiverr / passable / src / Enforce / helpers / safe_proxy.js View on Github external
function safeProxy(target, handler) {

    if (!glob.Proxy) {
        const ProxyPolyfill = proxyPolyfill();
        return new ProxyPolyfill(target, handler);
    }

    return new Proxy(target, handler);
}

proxy-polyfill

Polyfill for the Proxy object

Apache-2.0
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis

Popular proxy-polyfill functions