Debian Codegraph @

js/src/jit-test/tests/proxy/testDirectProxyApply1.js

raw
1 // Forward to the target if the trap is undefined
2 var target = function (x, y) {
3 return x + y;
4 }
5 for (let p of [new Proxy(target, {}), Proxy.revocable(target, {}).proxy])
6 assertEq(p(2, 3), 5);