mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibJS: Avoid redundant bounds check in ExecutionContext::argument()
This commit is contained in:
parent
13e1881bf7
commit
cd3ef805c4
|
|
@ -111,7 +111,7 @@ public:
|
||||||
{
|
{
|
||||||
if (index >= arguments.size()) [[unlikely]]
|
if (index >= arguments.size()) [[unlikely]]
|
||||||
return js_undefined();
|
return js_undefined();
|
||||||
return arguments[index];
|
return arguments.data()[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
Value& local(size_t index)
|
Value& local(size_t index)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user