summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2019-11-14 22:44:54 -0500
committerGitHub <noreply@github.com>2019-11-14 22:44:54 -0500
commitfc2836679476248bd60709349d00d9b1b51b6cbe (patch)
tree8ded8244cbfc6e7725c235b4f2350641682fff2e
parent00573571a226a0c59dd744da67483864a22911aa (diff)
parente79607a7a694dc2d48d65697b48138fa585145c9 (diff)
downloadUXP-fc2836679476248bd60709349d00d9b1b51b6cbe.tar
UXP-fc2836679476248bd60709349d00d9b1b51b6cbe.tar.gz
UXP-fc2836679476248bd60709349d00d9b1b51b6cbe.tar.lz
UXP-fc2836679476248bd60709349d00d9b1b51b6cbe.tar.xz
UXP-fc2836679476248bd60709349d00d9b1b51b6cbe.zip
Merge pull request #1290 from g4jc/bug_1279
Update TestingFunctions.cpp for regex lookbehind changes
-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 4363c7aed..072a72b75 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()))