mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Make FunctionPrototype's name empty per the spec
This commit is contained in:
parent
74614a10d1
commit
872a214f80
Notes:
github-actions[bot]
2024-11-26 12:45:13 +00:00
Author: https://github.com/gmta
Commit: 872a214f80
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2586
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 2 additions and 3 deletions
|
@ -30,9 +30,8 @@ private:
|
||||||
JS_DECLARE_NATIVE_FUNCTION(to_string);
|
JS_DECLARE_NATIVE_FUNCTION(to_string);
|
||||||
JS_DECLARE_NATIVE_FUNCTION(symbol_has_instance);
|
JS_DECLARE_NATIVE_FUNCTION(symbol_has_instance);
|
||||||
|
|
||||||
// Totally unnecessary, but sadly still necessary.
|
// 20.2.3: The Function prototype object has a "name" property whose value is the empty String.
|
||||||
// TODO: Get rid of the pointless name() method.
|
DeprecatedFlyString m_name;
|
||||||
DeprecatedFlyString m_name { "FunctionPrototype" };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue