We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e28fc06 commit 368555fCopy full SHA for 368555f
bindings/profilers/wall.cc
@@ -515,11 +515,7 @@ WallProfiler::WallProfiler(std::chrono::microseconds samplingPeriod,
515
516
v8::Local<v8::Uint32Array> jsArray =
517
v8::Uint32Array::New(buffer, 0, kFieldCount);
518
-#if (V8_MAJOR_VERSION >= 8)
519
fields_ = static_cast<uint32_t*>(buffer->GetBackingStore()->Data());
520
-#else
521
- fields_ = static_cast<uint32_t*>(buffer->GetContents().Data());
522
-#endif
523
jsArray_ = v8::Global<v8::Uint32Array>(isolate, jsArray);
524
std::fill(fields_, fields_ + kFieldCount, 0);
525
}
0 commit comments