1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/proxy/surfaces.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +// Check superficial properties of the Proxy constructor. 1.5 + 1.6 +var desc = Object.getOwnPropertyDescriptor(this, "Proxy"); 1.7 +assertEq(desc.configurable, true); 1.8 +assertEq(desc.enumerable, false); 1.9 +assertEq(desc.writable, true); 1.10 +assertEq(desc.value, Proxy); 1.11 + 1.12 +assertEq(typeof Proxy, "function"); 1.13 +assertEq(Object.getPrototypeOf(Proxy), Function.prototype); 1.14 +assertEq(Proxy.length, 2); 1.15 + 1.16 +// Proxy is a constructor but has no .prototype property. 1.17 +assertEq(Proxy.hasOwnProperty("prototype"), false);