summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a9a307da7..025620766 100644
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -3862,10 +3862,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()))