|
@@ -239,16 +239,16 @@ Value CallExpression::execute(Interpreter& interpreter, GlobalObject& global_obj
|
|
|
|
|
|
VERIFY(!callee.is_empty());
|
|
|
|
|
|
- if (!callee.is_function()) {
|
|
|
- throw_type_error_for_callee(interpreter, global_object, callee, "function"sv);
|
|
|
- return {};
|
|
|
- }
|
|
|
-
|
|
|
MarkedValueList arg_list(vm.heap());
|
|
|
argument_list_evaluation(interpreter, global_object, m_arguments, arg_list);
|
|
|
if (interpreter.exception())
|
|
|
return {};
|
|
|
|
|
|
+ if (!callee.is_function()) {
|
|
|
+ throw_type_error_for_callee(interpreter, global_object, callee, "function"sv);
|
|
|
+ return {};
|
|
|
+ }
|
|
|
+
|
|
|
auto& function = callee.as_function();
|
|
|
|
|
|
if (is<Identifier>(*m_callee) && static_cast<Identifier const&>(*m_callee).string() == vm.names.eval.as_string() && &function == global_object.eval_function()) {
|