GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/iojs/build/workspace/node-test-commit-linux-coverage-daily/nodes/benchmark/out/../src/node_symbols.cc Lines: 5 5 100.0 %
Date: 2019-05-05 22:32:45 Branches: 0 0 - %

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