mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibJS: Remove some irrelevant hash lookups in ESFO constructor
If we don't have parameter expressions, we don't need to collect metadata about whether instantiated var names collide with parameter names or function names, as these flags are only used in the parameter code path.
This commit is contained in:
parent
c037bda455
commit
f5dd776b11
Notes:
github-actions[bot]
2025-03-27 23:13:02 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/f5dd776b110 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4128 Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 2 additions and 2 deletions
|
@ -250,8 +250,8 @@ ECMAScriptFunctionObject::ECMAScriptFunctionObject(FlyString name, ByteString so
|
|||
// 3. Perform ! env.InitializeBinding(n, undefined).
|
||||
m_var_names_to_initialize_binding.append({
|
||||
.identifier = id,
|
||||
.parameter_binding = parameter_bindings.contains(id.string()),
|
||||
.function_name = function_names.contains(id.string()),
|
||||
// NOTE: We don't have to set parameter_binding or function_name here
|
||||
// since those are only relevant in the hasParameterExpressions==true path.
|
||||
});
|
||||
|
||||
if (!id.is_local())
|
||||
|
|
Loading…
Add table
Reference in a new issue