Skip to content

Commit

Permalink
Fix Core.finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Jul 25, 2022
1 parent 16a858b commit cbf40fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/generate_builtins.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const RECENTLY_ADDED = Core.Builtin[
Core.get_binding_type, Core.set_binding_type!,
Core.getglobal, Core.setglobal!,
Core.modifyfield!, Core.replacefield!, Core.swapfield!,
Core.finalizer
]
const kwinvoke = Core.kwfunc(Core.invoke)

Expand Down
2 changes: 1 addition & 1 deletion src/builtins.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
return Some{Any}(Core.const_arrayref(getargs(args, frame)...))
elseif @static isdefined(Core, :donotdelete) && f === Core.donotdelete
return Some{Any}(Core.donotdelete(getargs(args, frame)...))
elseif f === Core.finalizer
elseif @static isdefined(Core, :finalizer) && f === Core.finalizer
if nargs == 2
return Some{Any}(Core.finalizer(@lookup(frame, args[2]), @lookup(frame, args[3])))
elseif nargs == 3
Expand Down

0 comments on commit cbf40fe

Please sign in to comment.