Skip to content

Commit 3b53ef2

Browse files
committed
Don't splat in call to append_any
Fixes timholy/Revise.jl#625
1 parent 841a613 commit 3b53ef2

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "JuliaInterpreter"
22
uuid = "aa1ae85d-cabe-5617-a682-6adf51b2e16a"
3-
version = "0.8.18"
3+
version = "0.8.19"
44

55
[deps]
66
CodeTracking = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2"

src/builtins.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
7070
end
7171
new_expr = Expr(:call, argswrapped[1])
7272
popfirst!(argswrapped)
73-
argsflat = append_any(argswrapped...)
73+
argsflat = append_any(argswrapped)
7474
for x in argsflat
7575
push!(new_expr.args, (isa(x, Symbol) || isa(x, Expr) || isa(x, QuoteNode)) ? QuoteNode(x) : x)
7676
end

test/dummy_file.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Don't change the value below, it's used in an `include` test
2+
55

test/interpret.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,3 +811,10 @@ end
811811
JuliaInterpreter.finish_and_return!(Frame(m, ex), true)
812812
@test isdefined(m, :foo)
813813
end
814+
815+
# Related to fixing https://github.com/timholy/Revise.jl/issues/625
816+
module ForInclude end
817+
@testset "include" begin
818+
ex = :(include("dummy_file.jl"))
819+
@test JuliaInterpreter.finish_and_return!(Frame(ForInclude, ex), true) == 55
820+
end

0 commit comments

Comments
 (0)