Skip to content

Commit ac18ab0

Browse files
committed
bootstrap issue; don't outline errors in @assert
1 parent 85e2963 commit ac18ab0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

base/error.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,7 @@ macro assert(ex, msgs...)
231231
end
232232
end
233233

234-
fn = gensym("assert")
235-
236-
@eval @noinline function $(fn)()
237-
throw(AssertionError($msg))
238-
end
239-
240-
return :($(esc(ex)) ? $(nothing) : $(fn)())
234+
return :($(esc(ex)) ? $(nothing) : throw(AssertionError($msg)))
241235
end
242236

243237
function prepare_error(ex, msgs...)

0 commit comments

Comments
 (0)