Skip to content

Commit e13033d

Browse files
committed
src: stop using deprecated v8::Context::GetIsolate
Refs: 5623194
1 parent c771420 commit e13033d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
359359
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
360360
std::u16string_view str,
361361
v8::Isolate* isolate) {
362-
if (isolate == nullptr) isolate = context->GetIsolate();
362+
if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
363363
if (str.length() >= static_cast<size_t>(v8::String::kMaxLength))
364364
[[unlikely]] {
365365
// V8 only has a TODO comment about adding an exception when the maximum

0 commit comments

Comments
 (0)