diff options
author | Moonchild <moonchild@palemoon.org> | 2022-12-15 09:01:05 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-12-15 09:01:05 +0000 |
commit | c34cceb678dfd8698e341ff47738aed342144c47 (patch) | |
tree | da85dcee2bc956f0abd82f788f9aa20bbb4b7f3a /js/src/builtin/TestingFunctions.cpp | |
parent | b9894f1e934402d05f628cc36792a5fe84bef54c (diff) | |
download | uxp-c34cceb678dfd8698e341ff47738aed342144c47.tar.gz |
Revert "Issue #1279 - Implement regular expressions lookbehind (v2)"
This reverts commit d10e8a5b06b6e27b3ee3f8505e6d269ddc4bd1cb.
Diffstat (limited to 'js/src/builtin/TestingFunctions.cpp')
-rw-r--r-- | js/src/builtin/TestingFunctions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp index cb691893f2..8bcae4d826 100644 --- a/js/src/builtin/TestingFunctions.cpp +++ b/js/src/builtin/TestingFunctions.cpp @@ -3827,10 +3827,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())) |