@@ -626,7 +626,7 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::function_declaration_instantia
626626 } else if (i < execution_context_arguments.size () && !execution_context_arguments[i].is_undefined ()) {
627627 argument_value = execution_context_arguments[i];
628628 } else if (parameter.default_value ) {
629- auto value_and_frame = vm.bytecode_interpreter ().run_and_return_frame (realm, *m_default_parameter_bytecode_executables[default_parameter_index - 1 ], nullptr );
629+ auto value_and_frame = vm.bytecode_interpreter ().run_and_return_frame (*m_default_parameter_bytecode_executables[default_parameter_index - 1 ], nullptr );
630630 if (value_and_frame.value .is_error ())
631631 return value_and_frame.value .release_error ();
632632 // Resulting value is in the accumulator.
@@ -998,7 +998,7 @@ void async_block_start(VM& vm, T const& async_body, PromiseCapability const& pro
998998 auto & running_context = vm.running_execution_context ();
999999
10001000 // 3. Set the code evaluation state of asyncContext such that when evaluation is resumed for that execution context the following steps will be performed:
1001- auto execution_steps = NativeFunction::create (realm, " " , [&realm, & async_body, &promise_capability, &async_context](auto & vm) -> ThrowCompletionOr<Value> {
1001+ auto execution_steps = NativeFunction::create (realm, " " , [&async_body, &promise_capability, &async_context](auto & vm) -> ThrowCompletionOr<Value> {
10021002 Completion result;
10031003
10041004 // a. If asyncBody is a Parse Node, then
@@ -1009,12 +1009,10 @@ void async_block_start(VM& vm, T const& async_body, PromiseCapability const& pro
10091009 if (maybe_executable.is_error ())
10101010 result = maybe_executable.release_error ();
10111011 else
1012- result = vm.bytecode_interpreter ().run_and_return_frame (realm, *maybe_executable.value (), nullptr ).value ;
1012+ result = vm.bytecode_interpreter ().run_and_return_frame (*maybe_executable.value (), nullptr ).value ;
10131013 }
10141014 // b. Else,
10151015 else {
1016- (void )realm;
1017-
10181016 // i. Assert: asyncBody is an Abstract Closure with no parameters.
10191017 static_assert (IsCallableWithArguments<T, Completion>);
10201018
@@ -1126,7 +1124,7 @@ Completion ECMAScriptFunctionObject::ordinary_call_evaluate_body()
11261124 }
11271125 }
11281126
1129- auto result_and_frame = vm.bytecode_interpreter ().run_and_return_frame (realm, *m_bytecode_executable, nullptr );
1127+ auto result_and_frame = vm.bytecode_interpreter ().run_and_return_frame (*m_bytecode_executable, nullptr );
11301128
11311129 VERIFY (result_and_frame.frame != nullptr );
11321130 if (result_and_frame.value .is_error ())
0 commit comments