Lines Matching defs:RegExp
15 var r = new RegExp('a', 'gimuy');
20 Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.call(42);
33 Object.defineProperty(o, 'flags', Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags'));
35 assert (RegExp.prototype.toString.call (o) === "/str/guy");
46 RegExp.prototype.toString.call(42);
52 assert (RegExp.prototype.toString.call({}) === "/undefined/undefined");
57 RegExp.prototype.toString.call(o);
65 RegExp.prototype.toString.call(o);
74 RegExp.prototype.toString.call(o);
82 RegExp.prototype.toString.call(o);
95 RegExp.prototype[Symbol.match].call(o, "str");
106 r.exec = function (s) { return RegExp.prototype.exec.call(this, s); };
113 assert (RegExp.prototype[Symbol.match].call(r, "str?fgh").length === 8);
115 assert (RegExp.prototype[Symbol.match].call(r, "str?fgh").length === 9);
137 r.exec = function (s) { return RegExp.prototype.exec.call(this, s); };
145 assert (RegExp.prototype[Symbol.match].call(/a/y, "aaa").length === 1);
146 assert (RegExp.prototype[Symbol.match].call(/a/gy, "aaa").length === 3);