Home | History | Annotate | Download | only in src

Lines Matching refs:flags

35 function DoConstructRegExp(object, pattern, flags, isConstructorCall) {
38 if (!IS_UNDEFINED(flags)) {
41 flags = (pattern.global ? 'g' : '')
48 flags = IS_UNDEFINED(flags) ? '' : ToString(flags);
54 for (var i = 0; i < flags.length; i++) {
55 var c = StringCharAt.call(flags, i);
58 // Allow duplicate flags to be consistent with JSC and others.
68 // Ignore flags that have no meaning to be consistent with
101 %RegExpCompile(object, pattern, flags);
105 function RegExpConstructor(pattern, flags) {
107 DoConstructRegExp(this, pattern, flags, true);
110 if (IS_REGEXP(pattern) && IS_UNDEFINED(flags)) {
113 return new $RegExp(pattern, flags);
122 function CompileRegExp(pattern, flags) {
131 DoConstructRegExp(this, 'undefined', flags, false);
133 DoConstructRegExp(this, pattern, flags, false);