Index: test/inspector/inspector-impl.cc |
diff --git a/test/inspector/inspector-impl.cc b/test/inspector/inspector-impl.cc |
index 637a739d2a9dd54471f363448a43f31b62702f09..629c798f5917d45c10a2af8af0f566d73e8ce360 100644 |
--- a/test/inspector/inspector-impl.cc |
+++ b/test/inspector/inspector-impl.cc |
@@ -162,6 +162,20 @@ void InspectorClientImpl::disconnect() { |
session_.reset(); |
} |
+bool InspectorClientImpl::formatAccessorsAsProperties( |
+ v8::Local<v8::Value> object) { |
+ v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Local<v8::Context> context = isolate->GetCurrentContext(); |
+ v8::Local<v8::Private> shouldFormatAccessorsPrivate = v8::Private::ForApi( |
+ isolate, v8::String::NewFromUtf8(isolate, "allowAccessorFormatting", |
+ v8::NewStringType::kNormal) |
+ .ToLocalChecked()); |
+ CHECK(object->IsObject()); |
+ return object.As<v8::Object>() |
+ ->HasPrivate(context, shouldFormatAccessorsPrivate) |
+ .FromMaybe(false); |
+} |
+ |
v8::Local<v8::Context> InspectorClientImpl::ensureDefaultContextInGroup(int) { |
CHECK(isolate_); |
return context_.Get(isolate_); |