mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
LibJS: Remove ECMAScriptFlags value from JS_ENUMERATE_REGEXP_FLAGS
All regex flags supported by LibJS currently correspond to a LibRegex option, but this is not the case for the RegExp.prototype.hasIndices proposal, which is handled entirely in RegExpBuiltinExec. Remove the flag mapping to prepare for this. This incurs a bit of an optimization loss in the flag getters, as we now do a substring search, but we can revisit the getter implementation if it becomes an issue.
This commit is contained in:
parent
6cd966c1e1
commit
e801cc7afd
2 changed files with 16 additions and 16 deletions
|
@ -108,13 +108,13 @@
|
|||
__JS_ENUMERATE(toPrimitive, to_primitive) \
|
||||
__JS_ENUMERATE(toStringTag, to_string_tag)
|
||||
|
||||
#define JS_ENUMERATE_REGEXP_FLAGS \
|
||||
__JS_ENUMERATE(global, global, g, Global) \
|
||||
__JS_ENUMERATE(ignoreCase, ignore_case, i, Insensitive) \
|
||||
__JS_ENUMERATE(multiline, multiline, m, Multiline) \
|
||||
__JS_ENUMERATE(dotAll, dot_all, s, SingleLine) \
|
||||
__JS_ENUMERATE(unicode, unicode, u, Unicode) \
|
||||
__JS_ENUMERATE(sticky, sticky, y, Sticky)
|
||||
#define JS_ENUMERATE_REGEXP_FLAGS \
|
||||
__JS_ENUMERATE(global, global, g) \
|
||||
__JS_ENUMERATE(ignoreCase, ignore_case, i) \
|
||||
__JS_ENUMERATE(multiline, multiline, m) \
|
||||
__JS_ENUMERATE(dotAll, dot_all, s) \
|
||||
__JS_ENUMERATE(unicode, unicode, u) \
|
||||
__JS_ENUMERATE(sticky, sticky, y)
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue