Skip to content

Commit 0ef1569

Browse files
committed
Use Base method to extract method table
1 parent 20abb2b commit 0ef1569

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CodeTracking.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ const expressions_callback = Ref{Any}(nothing)
6161
const juliabase = joinpath("julia", "base")
6262
const juliastdlib = joinpath("julia", "stdlib", "v$(VERSION.major).$(VERSION.minor)")
6363

64-
method_table(method::Method) = isdefined(method, :external_mt) ? method.external_mt::MethodTable : nothing
65-
MethodInfoKey(method::Method) = MethodInfoKey(method_table(method), method.sig)
64+
MethodInfoKey(method::Method) = MethodInfoKey(Base.get_methodtable(method), method.sig)
6665

6766
### Public API
6867

0 commit comments

Comments
 (0)