Skip to content

Commit 5b2cc79

Browse files
chore: continue using the deprecated API
1 parent cc8f375 commit 5b2cc79

File tree

1 file changed

+3
-3
lines changed
  • packages/core/src/native_core/linux_perf

1 file changed

+3
-3
lines changed

packages/core/src/native_core/linux_perf/utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
static inline std::string
77
v8LocalStringToString(v8::Local<v8::String> v8String) {
8-
std::string buffer(v8String->Utf8LengthV2(v8::Isolate::GetCurrent()) + 1, 0);
9-
v8String->WriteUtf8V2(v8::Isolate::GetCurrent(), &buffer[0],
10-
v8String->Utf8LengthV2(v8::Isolate::GetCurrent()) + 1);
8+
std::string buffer(v8String->Utf8Length(v8::Isolate::GetCurrent()) + 1, 0);
9+
v8String->WriteUtf8(v8::Isolate::GetCurrent(), &buffer[0],
10+
v8String->Utf8Length(v8::Isolate::GetCurrent()) + 1);
1111
// Sanitize name, removing unwanted \0 resulted from WriteUtf8
1212
return std::string(buffer.c_str());
1313
}

0 commit comments

Comments
 (0)