Skip to content

Commit

Permalink
bootstrap issue; don't outline errors in @assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Jun 24, 2021
1 parent 85e2963 commit ac18ab0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions base/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,7 @@ macro assert(ex, msgs...)
end
end

fn = gensym("assert")

@eval @noinline function $(fn)()
throw(AssertionError($msg))
end

return :($(esc(ex)) ? $(nothing) : $(fn)())
return :($(esc(ex)) ? $(nothing) : throw(AssertionError($msg)))
end

function prepare_error(ex, msgs...)
Expand Down

0 comments on commit ac18ab0

Please sign in to comment.