michael@0: // Return the trap result michael@0: assertEq(new Proxy(function (x, y) { michael@0: return x + y; michael@0: }, { michael@0: apply: function (target, receiver, args) { michael@0: return args[0] * args[1]; michael@0: } michael@0: })(2, 3), 6);