Issue #1362 - Revert "Update js/src/builtin/TestingFunctions.cpp for

regex lookbehind changes"

This reverts commit e79607a7a694dc2d48d65697b48138fa585145c9.
This commit is contained in:
wolfbeast 2020-01-19 14:35:28 +01:00 committed by Roy Tam
commit 7d2350c859

View file

@ -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()))