Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Unified Diff: src/objects.h

Issue 788043005: ES6 unicode escapes, part 2: Regexps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mirror regexp test Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index ccc802d6f198e640e9ec283cb6f03bc4e9afea92..7eeedfa769f14cb52e38b3eb4e5c9c0b34af1880 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7902,7 +7902,8 @@ class JSRegExp: public JSObject {
GLOBAL = 1,
IGNORE_CASE = 2,
MULTILINE = 4,
- STICKY = 8
+ STICKY = 8,
+ UNICODE_ESCAPES = 16
};
class Flags {
@@ -7912,6 +7913,7 @@ class JSRegExp: public JSObject {
bool is_ignore_case() { return (value_ & IGNORE_CASE) != 0; }
bool is_multiline() { return (value_ & MULTILINE) != 0; }
bool is_sticky() { return (value_ & STICKY) != 0; }
+ bool is_unicode() { return (value_ & UNICODE_ESCAPES) != 0; }
uint32_t value() { return value_; }
private:
uint32_t value_;

Powered by Google App Engine
This is Rietveld 408576698