Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:function

30 function getTwoByteString() { return "\u1234t"; }
31 function getCons() { return "testtesttesttest" + getTwoByteString() }
33 var slowIndex1 = { valueOf: function() { return 1; } };
34 var slowIndex2 = { toString: function() { return "2"; } };
35 var slowIndexOutOfRange = { valueOf: function() { return -1; } };
37 function basicTest(s, len) {
80 basicTest(function() { return s; }, s.length);
101 toString: function() { return "012"; },
102 valueOf: function() { return "should not be called"; }
105 function stealTest() {
131 basicTest(function() { return s; }, s.length);
136 var badToString = function() { return []; };
138 function testBadToString_charAt() {
160 function testBadToString_charCodeAt() {
187 function testBadIndex_charAt() {
207 function testBadIndex_charCodeAt() {
227 function testPrototypeChange_charAt() {
232 String.prototype.charAt = function() { return "%"; };
242 function testPrototypeChange_charCodeAt() {
247 String.prototype.charCodeAt = function() { return 42; };