summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/testDirectProxyApply1.js
blob: a198dd14495946b0126c2b769567225eb12d4fb3 (plain)
1
2
3
4
5
6
// Forward to the target if the trap is undefined
var target = function (x, y) {
    return x + y;
}
for (let p of [new Proxy(target, {}), Proxy.revocable(target, {}).proxy])
    assertEq(p(2, 3), 5);