summaryrefslogtreecommitdiffstats
path: root/js/src/vm/RegExpObject.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-18 13:34:18 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-18 13:34:18 +0100
commitbd529c60c67af685de029e2408da3d2bc6980291 (patch)
tree4410771482d5ac6239a9952cb5d15a06cd294ff0 /js/src/vm/RegExpObject.h
parentf31b04a303607cd82757e7c4f60bb536658c8a30 (diff)
downloadUXP-bd529c60c67af685de029e2408da3d2bc6980291.tar
UXP-bd529c60c67af685de029e2408da3d2bc6980291.tar.gz
UXP-bd529c60c67af685de029e2408da3d2bc6980291.tar.lz
UXP-bd529c60c67af685de029e2408da3d2bc6980291.tar.xz
UXP-bd529c60c67af685de029e2408da3d2bc6980291.zip
Revert "Issue #1284 - Implement /s (dotAll) for regular expressions."
This reverts commit f31b04a303607cd82757e7c4f60bb536658c8a30.
Diffstat (limited to 'js/src/vm/RegExpObject.h')
-rw-r--r--js/src/vm/RegExpObject.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/src/vm/RegExpObject.h b/js/src/vm/RegExpObject.h
index 4548521df..f1ea101ed 100644
--- a/js/src/vm/RegExpObject.h
+++ b/js/src/vm/RegExpObject.h
@@ -53,18 +53,16 @@ enum RegExpFlag
MultilineFlag = 0x04,
StickyFlag = 0x08,
UnicodeFlag = 0x10,
- DotAllFlag = 0x20,
NoFlags = 0x00,
- AllFlags = 0x3f
+ AllFlags = 0x1f
};
static_assert(IgnoreCaseFlag == REGEXP_IGNORECASE_FLAG &&
GlobalFlag == REGEXP_GLOBAL_FLAG &&
MultilineFlag == REGEXP_MULTILINE_FLAG &&
StickyFlag == REGEXP_STICKY_FLAG &&
- UnicodeFlag == REGEXP_UNICODE_FLAG &&
- DotAllFlag == REGEXP_DOTALL_FLAG,
+ UnicodeFlag == REGEXP_UNICODE_FLAG,
"Flag values should be in sync with self-hosted JS");
enum RegExpRunStatus
@@ -482,7 +480,6 @@ class RegExpObject : public NativeObject
bool multiline() const { return getFlags() & MultilineFlag; }
bool sticky() const { return getFlags() & StickyFlag; }
bool unicode() const { return getFlags() & UnicodeFlag; }
- bool dotall() const { return getFlags() & DotAllFlag; }
static bool isOriginalFlagGetter(JSNative native, RegExpFlag* mask);