|
Ran
|
Jobs
1
|
Files
216
|
Run time
1min
|
Badge
README BADGES
|
push
local
bpart: Tweak `isdefinedglobal` on backdated constant (#58976) In d2cc06193 and prior commits, we made backdated access a conditional error (if depwarns are enabled or in generators). However, we did not touch `isdefinedglobal`. This resulted in the common pattern `isdefinedglobal(m, s) && getglobal(m, s)` to sometimes error. In particular, this could be observed when attempting to print a type from inside a generated function before that type's definition age. Additionally, I think the usage there, which used `invokelatest` on each of the two queries is problematic because it is racy, since the two `invokelatest` calls may be looking at different world ages. This makes two tweaks: 1. Makes `isdefinedglobal` consistent with `getglobal` in that it now returns false if `getglobal` would throw due to the above referenced restriction. 2. Removes the implicit `invokelatest` in _isself in the show code. Instead, it will use the current world. I considered having it use the exception age when used for MethodErrors. However, because this is used for printing it matters more how the object can be accessed *now* rather than how it could have been accessed in the past.
1 of 1 new or added line in 1 file covered. (100.0%)
110 existing lines in 2 files now uncovered.12878 of 50147 relevant lines covered (25.68%)
678795.94 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 24 |
48.41 |
0.93% | base/task.jl |
| 86 |
50.28 |
0.0% | stdlib/Test/src/Test.jl |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | #38130.1 | 216 |
25.68 |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|