Skip to content

Commit

Permalink
Handle :splatnew expressions on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Feb 10, 2019
1 parent 6bce17e commit 954abf8
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 954abf8

Please sign in to comment.