From 44221756ab7515617450400bf23d0e8df486c2b7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 1 Jul 2021 12:24:46 +0200 Subject: 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. --- Userland/Libraries/LibJS/Runtime/FunctionObject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibJS/Runtime/FunctionObject.h') 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 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; } -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0