mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS: Treat concise methods as non-constructors
This commit is contained in:
committed by
Andreas Kling
parent
1179e40d3f
commit
df8ead1f12
Notes:
github-actions[bot]
2026-03-20 21:00:10 +00:00
Author: https://github.com/olliehcrook 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/df8ead1f121 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8306
@@ -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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user