summaryrefslogtreecommitdiffstats
path: root/js/src
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-19 14:35:28 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-19 14:44:35 +0100
commit35dc8e5abb3a9f8cbbab4da5e57754b37dd54d59 (patch)
tree953e9652f4184006a807ff4548d80242db22b807 /js/src
parentcffb44547ae7997e5eaf71c644bd626eeb3bba00 (diff)
downloadUXP-35dc8e5abb3a9f8cbbab4da5e57754b37dd54d59.tar
UXP-35dc8e5abb3a9f8cbbab4da5e57754b37dd54d59.tar.gz
UXP-35dc8e5abb3a9f8cbbab4da5e57754b37dd54d59.tar.lz
UXP-35dc8e5abb3a9f8cbbab4da5e57754b37dd54d59.tar.xz
UXP-35dc8e5abb3a9f8cbbab4da5e57754b37dd54d59.zip
Issue #1362 - Revert "Update js/src/builtin/TestingFunctions.cpp for
regex lookbehind changes" This reverts commit e79607a7a694dc2d48d65697b48138fa585145c9.
Diffstat (limited to 'js/src')
-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 b521e2bb3..198772fb0 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->IsLookaround()) {
- if (!StringProp(cx, obj, "type", "Lookaround"))
+ if (tree->IsLookahead()) {
+ if (!StringProp(cx, obj, "type", "Lookahead"))
return nullptr;
- irregexp::RegExpLookaround* t = tree->AsLookaround();
+ irregexp::RegExpLookahead* t = tree->AsLookahead();
if (!BooleanProp(cx, obj, "is_positive", t->is_positive()))
return nullptr;
if (!TreeProp(cx, obj, "body", t->body()))