Commit 2a82947
committed
fix(dlx): move variable declarations before retry guard to avoid TDZ ReferenceError
The error message in ensurePythonDlx interpolated ${lockFile} and
${pythonDir}, but both were declared after the early-return check,
causing a ReferenceError (temporal dead zone) instead of the intended
InputError when retryCount >= MAX_RETRIES.1 parent d018b35 commit 2a82947
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1057 | 1060 | | |
1058 | 1061 | | |
1059 | 1062 | | |
1060 | 1063 | | |
1061 | 1064 | | |
1062 | 1065 | | |
1063 | 1066 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | 1067 | | |
1069 | 1068 | | |
1070 | 1069 | | |
| |||
0 commit comments