Commit e379499
fix BoundsError of args[1] when args is empty (#1014)
* fix BoundsError of args[1] when args is empty
if `args` on L101 is empty, then `args[1]` in `isexpr()` would throw `BoundsError: attempt to access 0-element Vector{Any} at index [1]`
* add unit tests for empty arguments
* Update src/pyfncall.jl
* Update src/pyfncall.jl
Co-authored-by: Steven G. Johnson <[email protected]>1 parent 3b0a0f4 commit e379499
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
| |||
0 commit comments