mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 08:37:30 +09:00
Issue #1465 - Implement optional catch binding.
This commit is contained in:
parent
f0404f3fca
commit
f4dd604bf5
7 changed files with 118 additions and 76 deletions
|
|
@ -651,8 +651,10 @@ class NameResolver
|
|||
// contain arbitrary expressions.
|
||||
case PNK_CATCH:
|
||||
MOZ_ASSERT(cur->isArity(PN_TERNARY));
|
||||
if (!resolve(cur->pn_kid1, prefix))
|
||||
return false;
|
||||
if (cur->pn_kid1) {
|
||||
if (!resolve(cur->pn_kid1, prefix))
|
||||
return false;
|
||||
}
|
||||
if (cur->pn_kid2) {
|
||||
if (!resolve(cur->pn_kid2, prefix))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue