mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00

Now that the heap has no knowledge about a JavaScript realm and is purely for managing the memory of the heap, it does not make sense to name this function to say that it is a non-realm variant.
22 lines
515 B
C++
22 lines
515 B
C++
/*
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibJS/Heap/Heap.h>
|
|
#include <LibJS/Runtime/VM.h>
|
|
#include <LibWeb/Fetch/Infrastructure/ConnectionTimingInfo.h>
|
|
|
|
namespace Web::Fetch::Infrastructure {
|
|
|
|
JS_DEFINE_ALLOCATOR(ConnectionTimingInfo);
|
|
|
|
ConnectionTimingInfo::ConnectionTimingInfo() = default;
|
|
|
|
JS::NonnullGCPtr<ConnectionTimingInfo> ConnectionTimingInfo::create(JS::VM& vm)
|
|
{
|
|
return vm.heap().allocate<ConnectionTimingInfo>();
|
|
}
|
|
|
|
}
|