diff options
author | Linus Groh <mail@linusgroh.de> | 2022-02-09 10:06:40 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-09 12:25:27 +0000 |
commit | bc183dbbcb61b1e03196b82f8bad23a167f481a9 (patch) | |
tree | 055ce49a3139cfb0e21a0ce41601246bc8d79f65 /Userland/Libraries/LibJS/Runtime/PromiseJobs.cpp | |
parent | 1d32ac7b8b8c18e5da4ba9fa7da47ea812bd99b4 (diff) | |
download | serenity-bc183dbbcb61b1e03196b82f8bad23a167f481a9.zip |
LibJS: Replace uses of MarkedValueList with MarkedVector<Value>
This is effectively a drop-in replacement.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PromiseJobs.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PromiseJobs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseJobs.cpp b/Userland/Libraries/LibJS/Runtime/PromiseJobs.cpp index 1812b7a3dc..163fe1c158 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseJobs.cpp +++ b/Userland/Libraries/LibJS/Runtime/PromiseJobs.cpp @@ -53,7 +53,7 @@ static ThrowCompletionOr<Value> run_reaction_job(GlobalObject& global_object, Pr // e. Else, let handlerResult be HostCallJobCallback(handler, undefined, « argument »). else { dbgln_if(PROMISE_DEBUG, "run_reaction_job: Calling handler callback {} @ {} with argument {}", handler.value().callback.cell()->class_name(), handler.value().callback.cell(), argument); - MarkedValueList arguments(vm.heap()); + MarkedVector<Value> arguments(vm.heap()); arguments.append(argument); handler_result = vm.host_call_job_callback(global_object, handler.value(), js_undefined(), move(arguments)); } @@ -133,7 +133,7 @@ static ThrowCompletionOr<Value> run_resolve_thenable_job(GlobalObject& global_ob // b. Let thenCallResult be HostCallJobCallback(then, thenable, « resolvingFunctions.[[Resolve]], resolvingFunctions.[[Reject]] »). dbgln_if(PROMISE_DEBUG, "run_resolve_thenable_job: Calling then job callback for thenable {}", &thenable); - MarkedValueList arguments(vm.heap()); + MarkedVector<Value> arguments(vm.heap()); arguments.append(Value(&resolve_function)); arguments.append(Value(&reject_function)); auto then_call_result = vm.host_call_job_callback(global_object, then, thenable, move(arguments)); |