IsHTMLDDA.h 502 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Runtime/NativeFunction.h>
  8. namespace JS::Test262 {
  9. class IsHTMLDDA final : public NativeFunction {
  10. JS_OBJECT(IsHTMLDDA, NativeFunction);
  11. public:
  12. virtual ~IsHTMLDDA() override = default;
  13. virtual ThrowCompletionOr<Value> call() override;
  14. private:
  15. explicit IsHTMLDDA(Realm&);
  16. virtual bool is_htmldda() const override { return true; }
  17. };
  18. }