/* * Copyright (c) 2021, Idan Horowitz * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace JS { class DataViewConstructor final : public NativeFunction { JS_OBJECT(DataViewConstructor, NativeFunction); public: explicit DataViewConstructor(Realm&); virtual void initialize(Realm&) override; virtual ~DataViewConstructor() override = default; virtual ThrowCompletionOr call() override; virtual ThrowCompletionOr construct(FunctionObject&) override; private: virtual bool has_constructor() const override { return true; } }; }