Issue #1279 - Update js/src/builtin/TestingFunctions.cpp for regex lookbehind changes

This fixes debug builds
This commit is contained in:
Gaming4JC 2019-11-14 22:40:15 -05:00 committed by Roy Tam
commit 59a1758d89

View file

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