Skip to content

Commit

Permalink
src: remove duplicate V macros in node_v8.cc
Browse files Browse the repository at this point in the history
PR-URL: #36454
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
danbev authored and targos committed Dec 21, 2020
1 parent f7635fd commit 1b4984d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/node_v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ void Initialize(Local<Object> target,
Uint32::NewFromUnsigned(env->isolate(), i)).Check();

HEAP_STATISTICS_PROPERTIES(V)
#undef V

// Export symbols used by v8.getHeapCodeStatistics()
env->SetMethod(
Expand All @@ -208,13 +207,7 @@ void Initialize(Local<Object> target,
binding_data->heap_code_statistics_buffer.GetJSArray())
.Check();

#define V(i, _, name) \
target->Set(env->context(), \
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
Uint32::NewFromUnsigned(env->isolate(), i)).Check();

HEAP_CODE_STATISTICS_PROPERTIES(V)
#undef V

size_t number_of_heap_spaces = env->isolate()->NumberOfHeapSpaces();

Expand Down Expand Up @@ -244,11 +237,6 @@ void Initialize(Local<Object> target,
binding_data->heap_space_statistics_buffer.GetJSArray())
.Check();

#define V(i, _, name) \
target->Set(env->context(), \
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
Uint32::NewFromUnsigned(env->isolate(), i)).Check();

HEAP_SPACE_STATISTICS_PROPERTIES(V)
#undef V

Expand Down

0 comments on commit 1b4984d

Please sign in to comment.