1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:07:44 +00:00

LibJS: Make FunctionExpression more spec-compliant

This commit is contained in:
Hendi 2021-07-07 22:53:32 +02:00 committed by Linus Groh
parent 0da1353c80
commit 0dc4e722e6
3 changed files with 22 additions and 2 deletions

View file

@ -384,6 +384,8 @@ Value VM::get_variable(const FlyString& name, GlobalObject& global_object)
return {};
if (possible_match.has_value())
return possible_match.value().value;
if (environment->has_binding(name))
return environment->get_binding_value(global_object, name, false);
}
}