Skip to content

Commit 18ab8d5

Browse files
Jake ChampionJakeChampion
authored andcommitted
Use the exact same slot defition for ObjectStoreEntry as RequestOrResponse to ensure that the slots align between the two namespaces
1 parent 6fa3b53 commit 18ab8d5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

c-dependencies/js-compute-runtime/builtins/object-store.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,7 @@ std::optional<char> find_invalid_character_for_object_store_key(const char *str)
3737
}
3838

3939
namespace ObjectStoreEntry {
40-
namespace Slots {
41-
enum {
42-
Body = RequestOrResponse::Slots::Body,
43-
BodyStream = RequestOrResponse::Slots::BodyStream,
44-
HasBody = RequestOrResponse::Slots::HasBody,
45-
BodyUsed = RequestOrResponse::Slots::BodyUsed,
46-
Count
47-
};
48-
};
40+
namespace Slots = RequestOrResponse::Slots;
4941

5042
const unsigned ctor_length = 0;
5143

0 commit comments

Comments
 (0)