diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2020-12-09 15:51:34 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2020-12-14 10:01:13 +0300 |
commit | 903998aced7dbb964ec7567c4b5765888d16b18d (patch) | |
tree | 0773cb61de81923d210333e0ce3f118ac3561417 /src/node_v8.cc | |
parent | 2cd83501851bbf71fe1c2b468dd03f2b347e0760 (diff) |
src: remove duplicate V macros in node_v8.cc
PR-URL: https://github.com/nodejs/node/pull/36454
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_v8.cc')
-rw-r--r-- | src/node_v8.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/node_v8.cc b/src/node_v8.cc index f34125d5f49..4ab87dce326 100644 --- a/src/node_v8.cc +++ b/src/node_v8.cc @@ -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( @@ -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(); @@ -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 |