File indexing completed on 2024-04-28 15:28:38

0001 shouldBe("Object.prototype.length","undefined");
0002 shouldBe("Function.prototype.length","0");
0003 shouldBe("Array.prototype.length","0");
0004 shouldBe("String.prototype.length","0");
0005 shouldBe("Boolean.prototype.length","undefined");
0006 shouldBe("Number.prototype.length","undefined");
0007 shouldBe("Date.prototype.length","undefined");
0008 shouldBe("RegExp.prototype.length","undefined");
0009 shouldBe("Error.prototype.length","undefined");
0010 
0011 // check !ReadOnly
0012 Array.prototype.length = 6;
0013 shouldBe("Array.prototype.length","6");
0014 // check ReadOnly
0015 Function.prototype.length = 7;
0016 shouldBe("Function.prototype.length","0");
0017 String.prototype.length = 8;
0018 shouldBe("String.prototype.length","0");
0019 
0020 // check DontDelete
0021 shouldBe("delete Array.prototype.length","false");
0022 shouldBe("delete Function.prototype.length","false");
0023 shouldBe("delete String.prototype.length","false");
0024 
0025 // check DontEnum
0026 var foundArrayPrototypeLength = false;
0027 for (i in Array.prototype) { if (i == "length") foundArrayPrototypeLength = true; }
0028 shouldBe("foundArrayPrototypeLength","false");
0029 
0030 var foundFunctionPrototypeLength = false;
0031 for (i in Function.prototype) { if (i == "length") foundFunctionPrototypeLength = true; }
0032 shouldBe("foundFunctionPrototypeLength","false");
0033 
0034 var foundStringPrototypeLength = false;
0035 for (i in String.prototype) { if (i == "length") foundStringPrototypeLength = true; }
0036 shouldBe("foundStringPrototypeLength","false");