Lines Matching refs:charCodeAt

98   n.charCodeAt = String.prototype.charCodeAt;
106 n.charCodeAt = String.prototype.charCodeAt;
116 assertTrue(isNaN(g().charCodeAt(-1e19)), 1 + t);
117 assertTrue(isNaN(g().charCodeAt(-0x80000001)), 2 + t);
118 assertTrue(isNaN(g().charCodeAt(-0x80000000)), 3 + t);
119 assertTrue(isNaN(g().charCodeAt(-0x40000000)), 4 + t);
120 assertTrue(isNaN(g().charCodeAt(-1)), 5 + t);
121 assertTrue(isNaN(g().charCodeAt(len)), 6 + t);
122 assertTrue(isNaN(g().charCodeAt(len + 1)), 7 + t);
123 assertTrue(isNaN(g().charCodeAt(0x3fffffff)), 8 + t);
124 assertTrue(isNaN(g().charCodeAt(0x7fffffff)), 9 + t);
125 assertTrue(isNaN(g().charCodeAt(0x80000000)), 10 + t);
126 assertTrue(isNaN(g().charCodeAt(1e9)), 11 + t);
127 assertEquals(84, g().charCodeAt(0), 12 + t);
128 assertEquals(84, g().charCodeAt("test"), 13 + t);
129 assertEquals(84, g().charCodeAt(""), 14 + t);
130 assertEquals(84, g().charCodeAt(null), 15 + t);
131 assertEquals(84, g().charCodeAt(undefined), 16 + t);
132 assertEquals(84, g().charCodeAt(), 17 + t);
133 assertEquals(84, g().charCodeAt(void 0), 18 + t);
134 assertEquals(84, g().charCodeAt(false), 19 + t);
135 assertEquals(101, g().charCodeAt(true), 20 + t);
136 assertEquals(101, g().charCodeAt(1), 21 + t);
137 assertEquals(sixteen ? 0x1234 : 115, g().charCodeAt(2), 22 + t);
138 assertEquals(116, g().charCodeAt(3), 23 + t);
139 assertEquals(101, g().charCodeAt(1.1), 24 + t);
140 assertEquals(sixteen ? 0x1234 : 115, g().charCodeAt(2.1718), 25 + t);
141 assertEquals(116, g().charCodeAt(3.14159), 26 + t);
161 assertTrue(isNaN(str.charCodeAt(0x7fffffff)));
172 assertEquals(101, Cons16().charCodeAt(1.1));
179 this.charCodeAt = String.prototype.charCodeAt;
182 assertEquals(52, new StupidThing().charCodeAt(0), 27);
183 assertEquals(50, new StupidThing().charCodeAt(1), 28);
184 assertTrue(isNaN(new StupidThing().charCodeAt(2)), 29);
185 assertTrue(isNaN(new StupidThing().charCodeAt(-1)), 30);
203 assertTrue(isNaN(medium.charCodeAt(-1)), 31);
204 assertEquals(49, medium.charCodeAt(0), 32);
205 assertEquals(56, medium.charCodeAt(255), 33);
206 assertTrue(isNaN(medium.charCodeAt(256)), 34);
208 assertTrue(isNaN(long.charCodeAt(-1)), 35);
209 assertEquals(49, long.charCodeAt(0), 36);
210 assertEquals(56, long.charCodeAt(65535), 37);
211 assertTrue(isNaN(long.charCodeAt(65536)), 38);
218 String.prototype.x = String.prototype.charCodeAt;