summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-11-14 22:40:15 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-11-14 22:40:15 -0500
commit18cdac3fd6d2ff4394d60a25ca5b360f32bb03c4 (patch)
tree78f06cafeda2c0a39765f7c4c344ffab9467cb6e /js
parentfd7ffdf61361cc1ac87f580964e5c46e3960a354 (diff)
downloaduxp-18cdac3fd6d2ff4394d60a25ca5b360f32bb03c4.tar.gz
Issue mcp-graveyard/UXP#1279 - Update js/src/builtin/TestingFunctions.cpp for regex lookbehind changes
This fixes debug builds
Diffstat (limited to 'js')
-rw-r--r--js/src/builtin/TestingFunctions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp
index 4363c7aed8..072a72b757 100644
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -3900,10 +3900,10 @@ ConvertRegExpTreeToObject(JSContext* cx, irregexp::RegExpTree* tree)
return nullptr;
return obj;
}
- if (tree->IsLookahead()) {
- if (!StringProp(cx, obj, "type", "Lookahead"))
+ if (tree->IsLookaround()) {
+ if (!StringProp(cx, obj, "type", "Lookaround"))
return nullptr;
- irregexp::RegExpLookahead* t = tree->AsLookahead();
+ irregexp::RegExpLookaround* t = tree->AsLookaround();
if (!BooleanProp(cx, obj, "is_positive", t->is_positive()))
return nullptr;
if (!TreeProp(cx, obj, "body", t->body()))