This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Commit 1192531
committed
fix($compile): reference correct directive name in ctreq error
Previously, ctreq would possibly reference the incorrect directive name,
due to relying on a directiveName living outside of the closure which
throws the exception, which can change before the call is ever made.
This change saves the current value of directiveName as a property of
the link function, which prevents this from occurring.
Closes #7062
Closes #70671 parent 5dee9e4 commit 1192531
2 files changed
+27
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
| 1347 | + | |
1347 | 1348 | | |
1348 | 1349 | | |
1349 | 1350 | | |
| |||
1352 | 1353 | | |
1353 | 1354 | | |
1354 | 1355 | | |
| 1356 | + | |
1355 | 1357 | | |
1356 | 1358 | | |
1357 | 1359 | | |
| |||
1360 | 1362 | | |
1361 | 1363 | | |
1362 | 1364 | | |
1363 | | - | |
| 1365 | + | |
1364 | 1366 | | |
1365 | 1367 | | |
1366 | 1368 | | |
| |||
1386 | 1388 | | |
1387 | 1389 | | |
1388 | 1390 | | |
1389 | | - | |
| 1391 | + | |
1390 | 1392 | | |
1391 | 1393 | | |
1392 | 1394 | | |
| |||
1529 | 1531 | | |
1530 | 1532 | | |
1531 | 1533 | | |
1532 | | - | |
| 1534 | + | |
1533 | 1535 | | |
1534 | 1536 | | |
1535 | 1537 | | |
| |||
1549 | 1551 | | |
1550 | 1552 | | |
1551 | 1553 | | |
1552 | | - | |
| 1554 | + | |
1553 | 1555 | | |
1554 | 1556 | | |
1555 | 1557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3509 | 3509 | | |
3510 | 3510 | | |
3511 | 3511 | | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
3512 | 3533 | | |
3513 | 3534 | | |
3514 | 3535 | | |
| |||
0 commit comments