mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Issue #1362 - Revert "Update js/src/builtin/TestingFunctions.cpp for
regex lookbehind changes" This reverts commit e79607a7a694dc2d48d65697b48138fa585145c9.
This commit is contained in:
parent
e2647e4529
commit
7d2350c859
1 changed files with 3 additions and 3 deletions
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue