Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:regexp

37 // Test containing null char in regexp.
39 var re = new RegExp(s);
89 // From ecma_3/RegExp/regress-334158.js
263 re = new RegExp("", "g");
269 re = new RegExp();
271 // giving a syntactically legal regexp literal).
273 re = new RegExp(void 0);
281 // Check for lazy RegExp literal creation
291 re = new RegExp("(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)");
296 re = new RegExp("foo(.)");
425 RegExp(long).exec("a");
583 // Now with a global regexp, where lastIndex is actually used.
606 // Check that properties of RegExp have the correct permissions.
644 // Global regexp (non-zero start).
664 // Long max_length of RegExp.
691 re = RegExp("(?:x)*");
692 re = RegExp("(x)*");
696 re = RegExp("(?=x)*");
697 re = RegExp("(?!x)*");
700 assertThrows("RegExp('(*)')");
701 assertThrows("RegExp('(?:*)')");
702 assertThrows("RegExp('(?=*)')");
703 assertThrows("RegExp('(?!*)')");
705 // Test trimmed regular expression for RegExp.test().
709 // Test that RegExp.prototype.toString() throws TypeError for
711 assertThrows("RegExp.prototype.toString.call(null)", TypeError);
712 assertThrows("RegExp.prototype.toString.call(0)", TypeError);
713 assertThrows("RegExp.prototype.toString.call('')", TypeError);
714 assertThrows("RegExp.prototype.toString.call(false)", TypeError);
715 assertThrows("RegExp.prototype.toString.call(true)", TypeError);
716 assertThrows("RegExp.prototype.toString.call([])", TypeError);
717 assertThrows("RegExp.prototype.toString.call({})", TypeError);
718 assertThrows("RegExp.prototype.toString.call(function(){})", TypeError);