@@ -64,26 +64,24 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
6464 end
6565 return new_expr
6666 elseif @static isdefined (Core, :_call_latest ) ? f === Core. _call_latest : false
67- argswrapped = getargs (args, frame)
67+ args = getargs (args, frame)
6868 if ! expand
69- return Some {Any} (Core. _call_latest (argswrapped ... ))
69+ return Some {Any} (Core. _call_latest (args ... ))
7070 end
71- new_expr = Expr (:call , argswrapped[1 ])
72- popfirst! (argswrapped)
73- argsflat = append_any (argswrapped... )
74- for x in argsflat
71+ new_expr = Expr (:call , args[1 ])
72+ popfirst! (args)
73+ for x in args
7574 push! (new_expr. args, (isa (x, Symbol) || isa (x, Expr) || isa (x, QuoteNode)) ? QuoteNode (x) : x)
7675 end
7776 return new_expr
7877 elseif @static isdefined (Core, :_apply_latest ) ? f === Core. _apply_latest : false
79- argswrapped = getargs (args, frame)
78+ args = getargs (args, frame)
8079 if ! expand
81- return Some {Any} (Core. _apply_latest (argswrapped ... ))
80+ return Some {Any} (Core. _apply_latest (args ... ))
8281 end
83- new_expr = Expr (:call , argswrapped[1 ])
84- popfirst! (argswrapped)
85- argsflat = append_any (argswrapped... )
86- for x in argsflat
82+ new_expr = Expr (:call , args[1 ])
83+ popfirst! (args)
84+ for x in args
8785 push! (new_expr. args, (isa (x, Symbol) || isa (x, Expr) || isa (x, QuoteNode)) ? QuoteNode (x) : x)
8886 end
8987 return new_expr
0 commit comments