LibJS: Avoid redundant bounds check in ExecutionContext::argument()

This commit is contained in:
Andreas Kling 2025-10-31 19:23:22 +01:00 committed by Andreas Kling
parent 13e1881bf7
commit cd3ef805c4

View File

@ -111,7 +111,7 @@ public:
{
if (index >= arguments.size()) [[unlikely]]
return js_undefined();
return arguments[index];
return arguments.data()[index];
}
Value& local(size_t index)