mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Issue #1279 - Update js/src/builtin/TestingFunctions.cpp for regex lookbehind changes
This fixes debug builds
This commit is contained in:
parent
ac1fe973f4
commit
59a1758d89
1 changed files with 3 additions and 3 deletions
|
|
@ -3900,10 +3900,10 @@ ConvertRegExpTreeToObject(JSContext* cx, irregexp::RegExpTree* tree)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
if (tree->IsLookahead()) {
|
if (tree->IsLookaround()) {
|
||||||
if (!StringProp(cx, obj, "type", "Lookahead"))
|
if (!StringProp(cx, obj, "type", "Lookaround"))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
irregexp::RegExpLookahead* t = tree->AsLookahead();
|
irregexp::RegExpLookaround* t = tree->AsLookaround();
|
||||||
if (!BooleanProp(cx, obj, "is_positive", t->is_positive()))
|
if (!BooleanProp(cx, obj, "is_positive", t->is_positive()))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
if (!TreeProp(cx, obj, "body", t->body()))
|
if (!TreeProp(cx, obj, "body", t->body()))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue