diff --git a/Project.toml b/Project.toml index c8ea54e..f6ebc0f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Tricks" uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775" authors = ["Frames White"] -version = "0.1.11" +version = "0.1.12" [compat] julia = "1.0" diff --git a/src/Tricks.jl b/src/Tricks.jl index 64ce423..c10b5ea 100644 --- a/src/Tricks.jl +++ b/src/Tricks.jl @@ -102,7 +102,7 @@ function _method_table_all_edges_all_methods(f, T, world = Base.get_world_counte mt = f.name.mt mt_edges = Core.Compiler.vect(mt, Tuple{f,Vararg{Any}}) else - mt = Core.GlobalMethods + mt = isdefined(Core, :methodtable) ? Core.methodtable : Core.GlobalMethods # was called this in 1.12 pre 1.12-rc2 mt_edges = Core.Compiler.vect(Tuple{f, Vararg{Any}}, mt) end