Commit 02494a5
committed
perl5db: only check sub names for non-references
DB::sub can be called by perl giving it either a name (if it can be
determined) or a code ref. There is special handling for AUTOLOAD subs
and threads::new. This could only be happen when given the name of the
sub, so there is no need to do these checks if given a reference.
Additionally, a reference could be an object, which could have
overloads. Those overloads could fail or otherwise complicate the normal
operation of DB::sub.
Add a ref check to the sub given to DB::sub to avoid these issues.1 parent a71385d commit 02494a5
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4460 | 4460 | | |
4461 | 4461 | | |
4462 | 4462 | | |
4463 | | - | |
| 4463 | + | |
4464 | 4464 | | |
4465 | 4465 | | |
4466 | 4466 | | |
4467 | 4467 | | |
4468 | 4468 | | |
4469 | | - | |
| 4469 | + | |
4470 | 4470 | | |
4471 | 4471 | | |
4472 | 4472 | | |
| |||
4601 | 4601 | | |
4602 | 4602 | | |
4603 | 4603 | | |
4604 | | - | |
| 4604 | + | |
4605 | 4605 | | |
4606 | 4606 | | |
4607 | 4607 | | |
4608 | 4608 | | |
4609 | 4609 | | |
4610 | | - | |
| 4610 | + | |
4611 | 4611 | | |
4612 | 4612 | | |
4613 | 4613 | | |
| |||
0 commit comments