Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 83fb7143c1bfe7c6830f6e6adcbba59a0840e44b..90dbfa5d1f0714e879e169a27bd5c6375143a46e 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -8034,7 +8034,13 @@ class JSRegExp: public JSObject { |
// IRREGEXP: Compiled with Irregexp. |
// IRREGEXP_NATIVE: Compiled to native code with Irregexp. |
enum Type { NOT_COMPILED, ATOM, IRREGEXP }; |
- enum Flag { NONE = 0, GLOBAL = 1, IGNORE_CASE = 2, MULTILINE = 4 }; |
+ enum Flag { |
+ NONE = 0, |
+ GLOBAL = 1, |
+ IGNORE_CASE = 2, |
+ MULTILINE = 4, |
+ STICKY = 8 |
+ }; |
class Flags { |
public: |
@@ -8042,6 +8048,7 @@ class JSRegExp: public JSObject { |
bool is_global() { return (value_ & GLOBAL) != 0; } |
bool is_ignore_case() { return (value_ & IGNORE_CASE) != 0; } |
bool is_multiline() { return (value_ & MULTILINE) != 0; } |
+ bool is_sticky() { return (value_ & STICKY) != 0; } |
uint32_t value() { return value_; } |
private: |
uint32_t value_; |