summaryrefslogtreecommitdiffstats
path: root/js/src/irregexp/RegExpAST.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-12 17:03:28 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-12 17:03:28 +0100
commitce0dd36a78814c59950fde6c19413c1f7ea85ee1 (patch)
tree7c0828a5828482fd1d542268423e01324ca936f8 /js/src/irregexp/RegExpAST.cpp
parent899be7cedbef6678280d56a4725f2697f808bbb5 (diff)
parentfa473930f424bf17a9e545b601c84dd2e61364e3 (diff)
downloadUXP-ce0dd36a78814c59950fde6c19413c1f7ea85ee1.tar
UXP-ce0dd36a78814c59950fde6c19413c1f7ea85ee1.tar.gz
UXP-ce0dd36a78814c59950fde6c19413c1f7ea85ee1.tar.lz
UXP-ce0dd36a78814c59950fde6c19413c1f7ea85ee1.tar.xz
UXP-ce0dd36a78814c59950fde6c19413c1f7ea85ee1.zip
Merge branch 'issue-1279'
Diffstat (limited to 'js/src/irregexp/RegExpAST.cpp')
-rw-r--r--js/src/irregexp/RegExpAST.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/irregexp/RegExpAST.cpp b/js/src/irregexp/RegExpAST.cpp
index 8dfd99057..43867c312 100644
--- a/js/src/irregexp/RegExpAST.cpp
+++ b/js/src/irregexp/RegExpAST.cpp
@@ -250,16 +250,16 @@ RegExpCapture::CaptureRegisters()
}
// ----------------------------------------------------------------------------
-// RegExpLookahead
+// RegExpLookaround
Interval
-RegExpLookahead::CaptureRegisters()
+RegExpLookaround::CaptureRegisters()
{
return body()->CaptureRegisters();
}
bool
-RegExpLookahead::IsAnchoredAtStart()
+RegExpLookaround::IsAnchoredAtStart()
{
- return is_positive() && body()->IsAnchoredAtStart();
+ return is_positive() && type() == LOOKAHEAD && body()->IsAnchoredAtStart();
}