Skip to content

Commit

Permalink
more unwrap_unionalls for kw func handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Feb 27, 2019
1 parent 2c8ca6e commit 1533989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JuliaInterpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ function maybe_step_through_wrapper!(stack)
last = stack[1].code.code.code[end-1]
isexpr(last, :(=)) && (last = last.args[2])
stack1 = stack[1]
is_kw = stack1.code.scope isa Method && startswith(String(Base.unwrap_unionall(stack1.code.scope.sig).parameters[1].name.name), "#kw")
is_kw = stack1.code.scope isa Method && startswith(String(Base.unwrap_unionall(Base.unwrap_unionall(stack1.code.scope.sig).parameters[1]).name.name), "#kw")
if is_kw || isexpr(last, :call) && any(x->x==SlotNumber(1), last.args)
# If the last expr calls #self# or passes it to an implementation method,
# this is a wrapper function that we might want to step through
Expand Down

0 comments on commit 1533989

Please sign in to comment.