Chromium Code Reviews| Index: src/regexp.js |
| diff --git a/src/regexp.js b/src/regexp.js |
| index e1eac76c124dbda3bc0635466617d1887fd17775..9dc06c683872e47cf76774e7e2dae1665be47585 100644 |
| --- a/src/regexp.js |
| +++ b/src/regexp.js |
| @@ -22,6 +22,8 @@ function DoConstructRegExp(object, pattern, flags) { |
| flags = (pattern.global ? 'g' : '') |
| + (pattern.ignoreCase ? 'i' : '') |
| + (pattern.multiline ? 'm' : ''); |
| + if (harmony_unicode) |
| + flags += (pattern.unicode ? 'u' : ''); |
| if (harmony_regexps) |
| flags += (pattern.sticky ? 'y' : ''); |
| 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 17:12:56
Let’s move this up one line so `u` goes before `y`
marja
2015/01/09 12:11:57
Done.
|
| return result; |
| } |