GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: node_symbols.cc Lines: 5 5 100.0 %
Date: 2021-09-22 04:12:37 Branches: 0 0 - %

Line Branch Exec Source
1
#include "env-inl.h"
2
#include "node_binding.h"
3
#include "util.h"
4
5
namespace node {
6
7
using v8::Context;
8
using v8::Local;
9
using v8::Object;
10
using v8::Value;
11
12
namespace symbols {
13
14
625
static void Initialize(Local<Object> target,
15
                       Local<Value> unused,
16
                       Local<Context> context,
17
                       void* priv) {
18
625
  Environment* env = Environment::GetCurrent(context);
19
#define V(PropertyName, StringValue)                                           \
20
  target                                                                       \
21
      ->Set(env->context(),                                                    \
22
            env->PropertyName()->Description(env->isolate()),                  \
23
            env->PropertyName())                                               \
24
      .Check();
25
20625
  PER_ISOLATE_SYMBOL_PROPERTIES(V)
26
#undef V
27
625
}
28
29
}  // namespace symbols
30
}  // namespace node
31
32
4926
NODE_MODULE_CONTEXT_AWARE_INTERNAL(symbols, node::symbols::Initialize)