diff --git a/native_mate/arguments.cc b/native_mate/arguments.cc index 47915dd42658..130d77d435a9 100644 --- a/native_mate/arguments.cc +++ b/native_mate/arguments.cc @@ -14,7 +14,8 @@ namespace { std::string V8TypeAsString(v8::Isolate* isolate, v8::Local value) { if (value.IsEmpty()) return ""; - v8::MaybeLocal details = value->ToDetailString(isolate); + v8::MaybeLocal details = + value->ToDetailString(isolate->GetCurrentContext()); std::string result; if (!details.IsEmpty()) ConvertFromV8(isolate, details.ToLocalChecked(), &result);