blob: a198dd14495946b0126c2b769567225eb12d4fb3 [file] [log] [blame]
// 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);