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
  • Loading branch information
danbev committed Dec 11, 2020
1 parent ef0f5b1 commit 738c778
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 738c778

Please sign in to comment.