Skip to content

Commit

Permalink
LibJS: Add missing includes
Browse files Browse the repository at this point in the history
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 <LibJS/Runtime/StringPrototype.h>
    // That's it, this was enough to cause a compilation error.

Likewise for most other files touched by this commit.
  • Loading branch information
BenWiederhake authored and trflynn89 committed Sep 18, 2022
1 parent d073a31 commit 48d8aff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Userland/Libraries/LibJS/Runtime/ClassFieldDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <AK/Forward.h>
#include <LibJS/Forward.h>
#include <LibJS/Heap/Handle.h>

namespace JS {

Expand Down
1 change: 1 addition & 0 deletions Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <AK/FlyString.h>
#include <AK/HashMap.h>
#include <LibJS/AST.h>
#include <LibJS/Runtime/Completion.h>
#include <LibJS/Runtime/Environment.h>
#include <LibJS/Runtime/Value.h>
Expand Down
1 change: 1 addition & 0 deletions Userland/Libraries/LibJS/Runtime/StringPrototype.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#pragma once

#include <AK/Utf8View.h>
#include <LibJS/Runtime/StringObject.h>

namespace JS {
Expand Down
1 change: 1 addition & 0 deletions Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <LibJS/Runtime/BigInt.h>
#include <LibJS/Runtime/Object.h>
#include <LibJS/Runtime/Temporal/AbstractOperations.h>

namespace JS::Temporal {

Expand Down

0 comments on commit 48d8aff

Please sign in to comment.