LibJS: Move [[ConstructorKind]] to ECMAScriptFunctionObject

This commit is contained in:
Linus Groh 2021-09-24 23:34:13 +02:00
commit 06726d41ac
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00
4 changed files with 25 additions and 20 deletions

View file

@ -886,7 +886,7 @@ Value ClassExpression::execute(Interpreter& interpreter, GlobalObject& global_ob
interpreter.vm().throw_exception<TypeError>(global_object, ErrorType::ClassExtendsValueNotAConstructorOrNull, super_constructor.to_string_without_side_effects());
return {};
}
class_constructor->set_constructor_kind(FunctionObject::ConstructorKind::Derived);
class_constructor->set_constructor_kind(ECMAScriptFunctionObject::ConstructorKind::Derived);
Object* super_constructor_prototype = nullptr;
if (!super_constructor.is_null()) {