Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:function

28 function oneMatch(re) {
29 "abcd".replace(re, function() { });
45 "abcdabcd".replace(/b/g, function() { });
57 function captureMatch(re) {
58 "abcd".replace(re, function() { });
76 "abcdabcd".replace(/(b)(c)/g, function() { });
91 function Override() {
95 "abcdabcd".replace(/(b)(c)/g, function() { });
99 function TestOverride(input, expect, property, re_src) {
103 function OverrideCase(fn) {
109 OverrideCase(function() { return input.replace(re, "x"); });
110 OverrideCase(function() { return input.replace(re_g, "x"); });
111 OverrideCase(function() { return input.replace(re, ""); });
112 OverrideCase(function() { return input.replace(re_g, ""); });
113 OverrideCase(function() { return input.match(re); });
114 OverrideCase(function() { return input.match(re_g); });
115 OverrideCase(function() { return re.test(input); });
116 OverrideCase(function() { return re_g.test(input); });
128 function no_last_match(fn) {
135 no_last_match(function() { "foo".replace("f", ""); });
136 no_last_match(function() { "foo".replace("f", "f"); });
137 no_last_match(function() { "foo".split("o"); });
141 no_last_match(function() { cons.replace("x", "y"); });
142 no_last_match(function() { cons.replace("e", "E"); });
148 "bar.foo baz......".replace(/(ba.).*?f/g, function() { return "x";});
164 function NoHang(re) {