LibJS: Treat concise methods as non-constructors

This commit is contained in:
Ollie Hensman-Crook
2026-03-07 12:51:11 +00:00
committed by Andreas Kling
parent 1179e40d3f
commit df8ead1f12
Notes: github-actions[bot] 2026-03-20 21:00:10 +00:00
6 changed files with 321 additions and 2 deletions

View File

@@ -323,6 +323,7 @@ void ECMAScriptFunctionObject::make_method(Object& home_object)
{
// 1. Set F.[[HomeObject]] to homeObject.
m_home_object = &home_object;
m_is_method = true;
// 2. Return unused.
}