Skip to content

Commit 950b87c

Browse files
committed
Fix is_defined_and_owned_global (Core.Binding changes)
Adapt to bpart changes in JuliaLang/julia#54788
1 parent 7d2efca commit 950b87c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runtime.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ end
371371
#
372372
# (This should do what fl_defined_julia_global does for flisp lowering)
373373
function is_defined_and_owned_global(mod, name)
374-
b = _get_module_binding(mod, name)
375-
!isnothing(b) && isdefined(b, :owner) && b.owner === b
374+
Base.binding_kind(mod, name) === Base.PARTITION_KIND_GLOBAL
376375
end
377376

378377
# "Reserve" a binding: create the binding if it doesn't exist but do not assign

0 commit comments

Comments
 (0)