michael@0: // Forward to the target if the trap is undefined michael@0: var target = function (x, y) { michael@0: this.foo = x + y; michael@0: } michael@0: var obj = new (Proxy(target, {}))(2, 3); michael@0: assertEq(obj.foo, 5); michael@0: assertEq(Object.getPrototypeOf(obj), target.prototype);