michael@0: // Check superficial properties of the Proxy constructor. michael@0: michael@0: var desc = Object.getOwnPropertyDescriptor(this, "Proxy"); michael@0: assertEq(desc.configurable, true); michael@0: assertEq(desc.enumerable, false); michael@0: assertEq(desc.writable, true); michael@0: assertEq(desc.value, Proxy); michael@0: michael@0: assertEq(typeof Proxy, "function"); michael@0: assertEq(Object.getPrototypeOf(Proxy), Function.prototype); michael@0: assertEq(Proxy.length, 2); michael@0: michael@0: // Proxy is a constructor but has no .prototype property. michael@0: assertEq(Proxy.hasOwnProperty("prototype"), false);