mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
LibJS: Rename ScriptFunction => OrdinaryFunctionObject
These are basically what the spec calls "ordinary function objects", so let's have the name reflect that. :^)
This commit is contained in:
parent
ba9d5c4d54
commit
c8270dbe2e
17 changed files with 60 additions and 60 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue