Merge pull request #27 from electron/fix-to-details-string-call
Fix Value::ToDetailString() call
This commit is contained in:
commit
3edb1eed8d
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ namespace {
|
|||
std::string V8TypeAsString(v8::Isolate* isolate, v8::Local<v8::Value> value) {
|
||||
if (value.IsEmpty())
|
||||
return "<empty handle>";
|
||||
v8::MaybeLocal<v8::String> details = value->ToDetailString(isolate);
|
||||
v8::MaybeLocal<v8::String> details =
|
||||
value->ToDetailString(isolate->GetCurrentContext());
|
||||
std::string result;
|
||||
if (!details.IsEmpty())
|
||||
ConvertFromV8(isolate, details.ToLocalChecked(), &result);
|
||||
|
|
Loading…
Reference in a new issue