Skip to content

Commit 8b76d2d

Browse files
authored
update builtins.jl (#646)
1 parent 958bd73 commit 8b76d2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/builtins.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
233233
end
234234
elseif f === Core.svec
235235
return Some{Any}(Core.svec(getargs(args, frame)...))
236+
elseif @static isdefined(Core, :throw_methoderror) && f === Core.throw_methoderror
237+
return Some{Any}(Core.throw_methoderror(getargs(args, frame)...))
236238
elseif f === applicable
237239
return Some{Any}(applicable(getargs(args, frame)...))
238240
elseif f === fieldtype

0 commit comments

Comments
 (0)