summaryrefslogtreecommitdiff
path: root/Userland/Utilities/js.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-27 22:15:58 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-27 22:36:04 +0200
commitc8270dbe2e9eac702a596709584a815f23a84e0f (patch)
treeb27c294d65db3a4fd17bdf4ab779bde6c587a875 /Userland/Utilities/js.cpp
parentba9d5c4d54d2e58c14eafe1e8960c3832fac46c7 (diff)
downloadserenity-c8270dbe2e9eac702a596709584a815f23a84e0f.zip
LibJS: Rename ScriptFunction => OrdinaryFunctionObject
These are basically what the spec calls "ordinary function objects", so let's have the name reflect that. :^)
Diffstat (limited to 'Userland/Utilities/js.cpp')
-rw-r--r--Userland/Utilities/js.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp
index 50fdb22134..c0a94b73f7 100644
--- a/Userland/Utilities/js.cpp
+++ b/Userland/Utilities/js.cpp
@@ -33,11 +33,11 @@
#include <LibJS/Runtime/NativeFunction.h>
#include <LibJS/Runtime/NumberObject.h>
#include <LibJS/Runtime/Object.h>
+#include <LibJS/Runtime/OrdinaryFunctionObject.h>
#include <LibJS/Runtime/PrimitiveString.h>
#include <LibJS/Runtime/Promise.h>
#include <LibJS/Runtime/ProxyObject.h>
#include <LibJS/Runtime/RegExpObject.h>
-#include <LibJS/Runtime/ScriptFunction.h>
#include <LibJS/Runtime/Set.h>
#include <LibJS/Runtime/Shape.h>
#include <LibJS/Runtime/StringObject.h>
@@ -237,8 +237,8 @@ static void print_object(JS::Object& object, HashTable<JS::Object*>& seen_object
static void print_function(const JS::Object& object, HashTable<JS::Object*>&)
{
print_type(object.class_name());
- if (is<JS::ScriptFunction>(object))
- out(" {}", static_cast<const JS::ScriptFunction&>(object).name());
+ if (is<JS::OrdinaryFunctionObject>(object))
+ out(" {}", static_cast<const JS::OrdinaryFunctionObject&>(object).name());
else if (is<JS::NativeFunction>(object))
out(" {}", static_cast<const JS::NativeFunction&>(object).name());
}