summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/FunctionObject.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-01 12:24:46 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-01 12:28:57 +0200
commit44221756ab7515617450400bf23d0e8df486c2b7 (patch)
tree0cca2e683a1d1efd822bdfa7e90995e2aa81d8d9 /Userland/Libraries/LibJS/Runtime/FunctionObject.h
parent56d25d721001f72bced2aa723d08a19eac9431fb (diff)
downloadserenity-44221756ab7515617450400bf23d0e8df486c2b7.zip
LibJS: Drop "Record" suffix from all the *Environment record classes
"Records" in the spec are basically C++ classes, so let's drop this mouthful of a suffix.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FunctionObject.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/FunctionObject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FunctionObject.h b/Userland/Libraries/LibJS/Runtime/FunctionObject.h
index 91f5b35cd7..c98d4fc141 100644
--- a/Userland/Libraries/LibJS/Runtime/FunctionObject.h
+++ b/Userland/Libraries/LibJS/Runtime/FunctionObject.h
@@ -26,7 +26,7 @@ public:
virtual Value call() = 0;
virtual Value construct(FunctionObject& new_target) = 0;
virtual const FlyString& name() const = 0;
- virtual FunctionEnvironmentRecord* create_environment_record(FunctionObject&) = 0;
+ virtual FunctionEnvironment* create_environment(FunctionObject&) = 0;
BoundFunction* bind(Value bound_this_value, Vector<Value> arguments);
@@ -45,7 +45,7 @@ public:
// [[Environment]]
// The Environment Record that the function was closed over.
// Used as the outer environment when evaluating the code of the function.
- virtual EnvironmentRecord* environment() { return nullptr; }
+ virtual Environment* environment() { return nullptr; }
// [[Realm]]
virtual GlobalObject* realm() const { return nullptr; }