summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-03-14 10:25:06 -0600
committerLinus Groh <mail@linusgroh.de>2022-03-16 16:19:40 +0000
commitd00b79568faef7c89b4be94b6f2a9390073ede5b (patch)
treeb4d5b6391cba5d504d4b1097a63542c6e529734f /Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp
parent07c7827dee4550ca16b4b6985b221e364b658cad (diff)
downloadserenity-d00b79568faef7c89b4be94b6f2a9390073ede5b.zip
Libraries: Use default constructors/destructors in LibJS
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp b/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp
index 9387906fdd..950a413778 100644
--- a/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.cpp
@@ -27,10 +27,6 @@ void GeneratorFunctionConstructor::initialize(GlobalObject& global_object)
define_direct_property(vm.names.prototype, global_object.generator_function_prototype(), 0);
}
-GeneratorFunctionConstructor::~GeneratorFunctionConstructor()
-{
-}
-
// 27.3.1.1 GeneratorFunction ( p1, p2, … , pn, body ), https://tc39.es/ecma262/#sec-generatorfunction
ThrowCompletionOr<Value> GeneratorFunctionConstructor::call()
{