Skip to content

Commit 368555f

Browse files
authored
Remove conditionals for V8_MAJOR_VERSION < 8 (#191)
1 parent e28fc06 commit 368555f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bindings/profilers/wall.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,7 @@ WallProfiler::WallProfiler(std::chrono::microseconds samplingPeriod,
515515

516516
v8::Local<v8::Uint32Array> jsArray =
517517
v8::Uint32Array::New(buffer, 0, kFieldCount);
518-
#if (V8_MAJOR_VERSION >= 8)
519518
fields_ = static_cast<uint32_t*>(buffer->GetBackingStore()->Data());
520-
#else
521-
fields_ = static_cast<uint32_t*>(buffer->GetContents().Data());
522-
#endif
523519
jsArray_ = v8::Global<v8::Uint32Array>(isolate, jsArray);
524520
std::fill(fields_, fields_ + kFieldCount, 0);
525521
}

0 commit comments

Comments
 (0)