diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-19 14:35:28 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-19 14:36:29 +0100 |
commit | b1abb9aebe9de3507c93f31cf1b7ffff3432e481 (patch) | |
tree | 3117e1a7b9448da180c8f4c0f3aed29a8c5722e1 /js/src | |
parent | 63219a15b155aee142f316156b6578f027204129 (diff) | |
download | UXP-b1abb9aebe9de3507c93f31cf1b7ffff3432e481.tar UXP-b1abb9aebe9de3507c93f31cf1b7ffff3432e481.tar.gz UXP-b1abb9aebe9de3507c93f31cf1b7ffff3432e481.tar.lz UXP-b1abb9aebe9de3507c93f31cf1b7ffff3432e481.tar.xz UXP-b1abb9aebe9de3507c93f31cf1b7ffff3432e481.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.cpp | 6 |
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())) |