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:
Stephan Unverwerth 2020-04-13 01:07:31 +02:00 committed by Andreas Kling
commit bbd592cb6c
Notes: sideshowbarker 2024-07-19 07:38:38 +09:00
13 changed files with 22 additions and 4 deletions

View file

@ -37,6 +37,7 @@
namespace JS {
NumberConstructor::NumberConstructor()
: NativeFunction("Number")
{
put_native_function("isSafeInteger", is_safe_integer, 1);