LibJS: Remove unused target field from Completion

This shrinks Completion by 16 bytes, which has non-trivial impact
on performance.
This commit is contained in:
Andreas Kling 2024-05-10 09:28:48 +02:00 committed by Alexander Kalenik
parent a77c6e15f4
commit ae11a4de1c
Notes: sideshowbarker 2024-07-16 20:21:48 +09:00
9 changed files with 23 additions and 26 deletions

View file

@ -91,7 +91,7 @@ JS::Completion ClassicScript::run(RethrowErrors rethrow_errors, JS::GCPtr<JS::En
// 5. If script's error to rethrow is not null, then set evaluationStatus to Completion { [[Type]]: throw, [[Value]]: script's error to rethrow, [[Target]]: empty }.
if (!error_to_rethrow().is_null()) {
evaluation_status = JS::Completion { JS::Completion::Type::Throw, error_to_rethrow(), {} };
evaluation_status = JS::Completion { JS::Completion::Type::Throw, error_to_rethrow() };
} else {
auto timer = Core::ElapsedTimer::start_new();