Skip to content

Commit 1b4984d

Browse files
danbevtargos
authored andcommitted
src: remove duplicate V macros in node_v8.cc
PR-URL: #36454 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent f7635fd commit 1b4984d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/node_v8.cc

-12
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ void Initialize(Local<Object> target,
196196
Uint32::NewFromUnsigned(env->isolate(), i)).Check();
197197

198198
HEAP_STATISTICS_PROPERTIES(V)
199-
#undef V
200199

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

211-
#define V(i, _, name) \
212-
target->Set(env->context(), \
213-
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
214-
Uint32::NewFromUnsigned(env->isolate(), i)).Check();
215-
216210
HEAP_CODE_STATISTICS_PROPERTIES(V)
217-
#undef V
218211

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

@@ -244,11 +237,6 @@ void Initialize(Local<Object> target,
244237
binding_data->heap_space_statistics_buffer.GetJSArray())
245238
.Check();
246239

247-
#define V(i, _, name) \
248-
target->Set(env->context(), \
249-
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
250-
Uint32::NewFromUnsigned(env->isolate(), i)).Check();
251-
252240
HEAP_SPACE_STATISTICS_PROPERTIES(V)
253241
#undef V
254242

0 commit comments

Comments
 (0)