diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-01 12:24:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-01 12:28:57 +0200 |
commit | 44221756ab7515617450400bf23d0e8df486c2b7 (patch) | |
tree | 0cca2e683a1d1efd822bdfa7e90995e2aa81d8d9 /Userland/Libraries/LibJS/Runtime/FunctionObject.h | |
parent | 56d25d721001f72bced2aa723d08a19eac9431fb (diff) | |
download | serenity-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.h | 4 |
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; } |