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-09-15 22:29:17 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
3580
static void Initialize(Local<Object> target,
15
                       Local<Value> unused,
16
                       Local<Context> context,
17
                       void* priv) {
18
3580
  Environment* env = Environment::GetCurrent(context);
19
#define V(PropertyName, StringValue)                                           \
20
  target                                                                       \
21
      ->Set(env->context(), env->PropertyName()->Name(), env->PropertyName())  \
22
      .Check();
23
60860
  PER_ISOLATE_SYMBOL_PROPERTIES(V)
24
#undef V
25
3580
}
26
27
}  // namespace symbols
28
}  // namespace node
29
30
5033
NODE_MODULE_CONTEXT_AWARE_INTERNAL(symbols, node::symbols::Initialize)