From 48d8aff4367615d8ea90cc78abfa6f1dd6080726 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 13 Sep 2022 17:42:39 +0200 Subject: [PATCH] LibJS: Add missing includes This remained undetected for a long time as HeaderCheck is disabled by default. This commit makes the following file compile again: // file: compile_me.cpp #include // That's it, this was enough to cause a compilation error. Likewise for most other files touched by this commit. --- Userland/Libraries/LibJS/Runtime/ClassFieldDefinition.h | 1 + Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h | 1 + Userland/Libraries/LibJS/Runtime/StringPrototype.h | 1 + Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTime.h | 1 + 4 files changed, 4 insertions(+) diff --git a/Userland/Libraries/LibJS/Runtime/ClassFieldDefinition.h b/Userland/Libraries/LibJS/Runtime/ClassFieldDefinition.h index f02ecbbb1e..ffe40df013 100644 --- a/Userland/Libraries/LibJS/Runtime/ClassFieldDefinition.h +++ b/Userland/Libraries/LibJS/Runtime/ClassFieldDefinition.h @@ -8,6 +8,7 @@ #include #include +#include namespace JS { diff --git a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h index ceea57c9d7..cdce27d023 100644 --- a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h +++ b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/Userland/Libraries/LibJS/Runtime/StringPrototype.h b/Userland/Libraries/LibJS/Runtime/StringPrototype.h index b24e8ee0ba..afbbda62d0 100644 --- a/Userland/Libraries/LibJS/Runtime/StringPrototype.h +++ b/Userland/Libraries/LibJS/Runtime/StringPrototype.h @@ -6,6 +6,7 @@ #pragma once +#include #include namespace JS { diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTime.h b/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTime.h index 6655f7f770..972962b0e8 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTime.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTime.h @@ -8,6 +8,7 @@ #include #include +#include namespace JS::Temporal {