mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibJS: Tweak FunctionPrototype::to_string and constructors
The output of FunctionPrototype::to_string is now more in line with the output in Firefox. The builtin constructors have been extended to include their function name in the output.
This commit is contained in:
parent
0d41e542b7
commit
bbd592cb6c
13 changed files with 22 additions and 4 deletions
|
@ -36,6 +36,11 @@ NativeFunction::NativeFunction(const FlyString& name, AK::Function<Value(Interpr
|
|||
{
|
||||
}
|
||||
|
||||
NativeFunction::NativeFunction(const FlyString& name)
|
||||
: m_name(name)
|
||||
{
|
||||
}
|
||||
|
||||
NativeFunction::~NativeFunction()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue