From 3dce1dd240d1e5cf44318d7badd81084e4af3155 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Thu, 12 Apr 2018 15:36:44 +0200 Subject: [PATCH] Fix Value::ToDetailString() call See https://chromium-review.googlesource.com/848782 --- native_mate/arguments.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);