diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-03-15 19:29:57 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-16 13:54:16 +0100 |
commit | ca96f8e364c55f894a9edaa4abb86db0ed5dfb0c (patch) | |
tree | 66cffd56c9ef0b320d41527e589ed58d69fa35b8 /Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h | |
parent | de32c44762faa039c250eaa7b0cd0bacf3a7209e (diff) | |
download | serenity-ca96f8e364c55f894a9edaa4abb86db0ed5dfb0c.zip |
LibWeb: Port WebAssembly.Memory to IDL
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h')
-rw-r--r-- | Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h deleted file mode 100644 index ec9c6f2559..0000000000 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org> - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include <LibJS/Runtime/NativeFunction.h> - -namespace Web::Bindings { - -class WebAssemblyMemoryConstructor : public JS::NativeFunction { - JS_OBJECT(WebAssemblyMemoryConstructor, JS::NativeFunction); - -public: - explicit WebAssemblyMemoryConstructor(JS::Realm&); - virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override; - virtual ~WebAssemblyMemoryConstructor() override; - - virtual JS::ThrowCompletionOr<JS::Value> call() override; - virtual JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Object>> construct(JS::FunctionObject& new_target) override; - -private: - virtual bool has_constructor() const override { return true; } -}; - -} |