Skip to content

Commit

Permalink
guard `isempty (close #41656) (#41752)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4c3829d)
  • Loading branch information
bicycle1885 authored and KristofferC committed Sep 3, 2021
1 parent 73c2e0b commit cc66406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

if isempty(Base.ARGS) || Base.ARGS[1] !== "0"
if Base.isempty(Base.ARGS) || Base.ARGS[1] !== "0"
Sys.__init_build()
# Prevent this from being put into the Main namespace
@eval Module() begin
Expand Down
3 changes: 3 additions & 0 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -912,3 +912,6 @@ end
@testset "issue #28188" begin
@test `$(@__FILE__)` == let file = @__FILE__; `$file` end
end

# issue #41656
@test success(`$(Base.julia_cmd()) -e 'isempty(x) = true'`)

0 comments on commit cc66406

Please sign in to comment.