From cd3ef805c4c146323036ea94edb064ae14357b27 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 31 Oct 2025 19:23:22 +0100 Subject: [PATCH] LibJS: Avoid redundant bounds check in ExecutionContext::argument() --- Libraries/LibJS/Runtime/ExecutionContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Runtime/ExecutionContext.h b/Libraries/LibJS/Runtime/ExecutionContext.h index 8163ae98e0..ed5e85cb47 100644 --- a/Libraries/LibJS/Runtime/ExecutionContext.h +++ b/Libraries/LibJS/Runtime/ExecutionContext.h @@ -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)