mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +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:
committed by
Andreas Kling
parent
0d41e542b7
commit
bbd592cb6c
@@ -33,6 +33,7 @@
|
||||
namespace JS {
|
||||
|
||||
StringConstructor::StringConstructor()
|
||||
: NativeFunction("String")
|
||||
{
|
||||
put("prototype", interpreter().string_prototype());
|
||||
put("length", Value(1));
|
||||
|
||||
Reference in New Issue
Block a user