Skip to content

Commit

Permalink
Merge pull request #9 from JuliaDebug/teh/splatnew
Browse files Browse the repository at this point in the history
Handle :splatnew expressions on nightly
  • Loading branch information
timholy authored Feb 10, 2019
2 parents 6bce17e + 954abf8 commit 4f68437
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/interpret.jl
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ function eval_rhs(stack, frame, node::Expr, pc)
ccall(:jl_set_nth_field, Cvoid, (Any, Csize_t, Any), rhs, i-1, @lookup(mod, frame, node.args[i+1]))
end
return rhs
elseif head == :splatnew # Julia 1.2+
mod = moduleof(frame)
rhs = ccall(:jl_new_structt, Any, (Any, Any), @lookup(mod, frame, node.args[1]), @lookup(mod, frame, node.args[2]))
return rhs
elseif head == :isdefined
return check_isdefined(frame, node.args[1])
elseif head == :call
Expand Down

0 comments on commit 4f68437

Please sign in to comment.