Home | History | Annotate | Download | only in Number

Lines Matching refs:prototype

32                         15.7.2.1 The [[Prototype]] property of the newly
34 prototype object, the one that is the initial value
35 of Number.prototype(0). The [[Class]] property is
63 // To verify that the object's prototype is the Number.prototype, check to see if the object's
64 // constructor property is the same as Number.prototype.constructor.
66 array[item++] = new TestCase(SECTION, "(new Number()).constructor", Number.prototype.constructor, (new Number()).constructor );
71 "NUMB = new Number();NUMB.toString=Object.prototype.toString;NUMB.toString()",
73 eval("NUMB = new Number();NUMB.toString=Object.prototype.toString;NUMB.toString()") );
75 array[item++] = new TestCase(SECTION, "(new Number(0)).constructor", Number.prototype.constructor, (new Number(0)).constructor );
79 "NUMB = new Number(0);NUMB.toString=Object.prototype.toString;NUMB.toString()",
81 eval("NUMB = new Number(0);NUMB.toString=Object.prototype.toString;NUMB.toString()") );
83 array[item++] = new TestCase(SECTION, "(new Number(1)).constructor", Number.prototype.constructor, (new Number(1)).constructor );
87 "NUMB = new Number(1);NUMB.toString=Object.prototype.toString;NUMB.toString()",
89 eval("NUMB = new Number(1);NUMB.toString=Object.prototype.toString;NUMB.toString()") );
91 array[item++] = new TestCase(SECTION, "(new Number(-1)).constructor", Number.prototype.constructor, (new Number(-1)).constructor );
95 "NUMB = new Number(-1);NUMB.toString=Object.prototype.toString;NUMB.toString()",
97 eval("NUMB = new Number(-1);NUMB.toString=Object.prototype.toString;NUMB.toString()") );
99 array[item++] = new TestCase(SECTION, "(new Number(Number.NaN)).constructor", Number.prototype.constructor, (new Number(Number.NaN)).constructor );
103 "NUMB = new Number(Number.NaN);NUMB.toString=Object.prototype.toString;NUMB.toString()",
105 eval("NUMB = new Number(Number.NaN);NUMB.toString=Object.prototype.toString;NUMB.toString()") );
107 array[item++] = new TestCase(SECTION, "(new Number('string')).constructor", Number.prototype.constructor, (new Number('string')).constructor );
111 "NUMB = new Number('string');NUMB.toString=Object.prototype.toString;NUMB.toString()",
113 eval("NUMB = new Number('string');NUMB.toString=Object.prototype.toString;NUMB.toString()") );
115 array[item++] = new TestCase(SECTION, "(new Number(new String())).constructor", Number.prototype.constructor, (new Number(new String())).constructor );
119 "NUMB = new Number(new String());NUMB.toString=Object.prototype.toString;NUMB.toString()",
121 eval("NUMB = new Number(new String());NUMB.toString=Object.prototype.toString;NUMB.toString()") );
123 array[item++] = new TestCase(SECTION, "(new Number('')).constructor", Number.prototype.constructor, (new Number('')).constructor );
127 "NUMB = new Number('');NUMB.toString=Object.prototype.toString;NUMB.toString()",
129 eval("NUMB = new Number('');NUMB.toString=Object.prototype.toString;NUMB.toString()") );
131 array[item++] = new TestCase(SECTION, "(new Number(Number.POSITIVE_INFINITY)).constructor", Number.prototype.constructor, (new Number(Number.POSITIVE_INFINITY)).constructor );
135 "NUMB = new Number(Number.POSITIVE_INFINITY);NUMB.toString=Object.prototype.toString;NUMB.toString()",
137 eval("NUMB = new Number(Number.POSITIVE_INFINITY);NUMB.toString=Object.prototype.toString;NUMB.toString()") );
139 array[item++] = new TestCase(SECTION, "(new Number(Number.NEGATIVE_INFINITY)).constructor", Number.prototype.constructor, (new Number(Number.NEGATIVE_INFINITY)).constructor );
143 "NUMB = new Number(Number.NEGATIVE_INFINITY);NUMB.toString=Object.prototype.toString;NUMB.toString()",
145 eval("NUMB = new Number(Number.NEGATIVE_INFINITY);NUMB.toString=Object.prototype.toString;NUMB.toString()") );
148 array[item++] = new TestCase(SECTION, "(new Number()).constructor", Number.prototype.constructor, (new Number()).constructor );
152 "NUMB = new Number();NUMB.toString=Object.prototype.toString;NUMB.toString()",
154 eval("NUMB = new Number();NUMB.toString=Object.prototype.toString;NUMB.toString()") );