Chromium Code Reviews| Index: src/regexp.js |
| diff --git a/src/regexp.js b/src/regexp.js |
| index e1eac76c124dbda3bc0635466617d1887fd17775..a9705cbf1eecfad4a20267bc172f19635b077c82 100644 |
| --- a/src/regexp.js |
| +++ b/src/regexp.js |
| @@ -24,6 +24,8 @@ function DoConstructRegExp(object, pattern, flags) { |
| + (pattern.multiline ? 'm' : ''); |
| if (harmony_regexps) |
| flags += (pattern.sticky ? 'y' : ''); |
| + if (harmony_unicode) |
| + flags += (pattern.unicode ? 'u' : ''); |
|
mathias
2015/01/08 12:29:07
`u` goes before `y`.
marja
2015/01/08 13:42:18
Done.
|
| pattern = pattern.source; |
| } |
| @@ -236,6 +238,7 @@ function RegExpToString() { |
| if (this.ignoreCase) result += 'i'; |
| if (this.multiline) result += 'm'; |
| if (harmony_regexps && this.sticky) result += 'y'; |
| + if (harmony_unicode && this.unicode) result += 'u'; |
|
mathias
2015/01/08 12:29:07
Same here.
marja
2015/01/08 13:42:18
Done + updated mjsunit/harmony/regexp-flags.js to
|
| return result; |
| } |