1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:37:36 +00:00

LibJS: Let class_definition_evaluation() return a ESFnObject*, not Value

No need to hide this very specific Object type in a generic Value.
This commit is contained in:
Linus Groh 2022-01-19 19:50:38 +00:00
parent 531d1ac734
commit 6e5097b201
2 changed files with 6 additions and 6 deletions

View file

@ -1254,7 +1254,7 @@ public:
bool has_name() const { return !m_name.is_empty(); }
ThrowCompletionOr<Value> class_definition_evaluation(Interpreter& interpreter, GlobalObject& global_object, FlyString const& binding_name = {}, FlyString const& class_name = {}) const;
ThrowCompletionOr<ECMAScriptFunctionObject*> class_definition_evaluation(Interpreter& interpreter, GlobalObject& global_object, FlyString const& binding_name = {}, FlyString const& class_name = {}) const;
private:
virtual bool is_class_expression() const override { return true; }