| Index: third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
|
| index 4aa2bc3fccd0164519fabd96e15894767d55e9f8..1ef3bbbaee9ea0998a92926ad33ebb55a2607dbc 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
|
| @@ -59,6 +59,11 @@ v8::Local<v8::Private> V8InjectedScriptHost::internalEntryPrivate(v8::Isolate* i
|
| return v8::Private::ForApi(isolate, toV8StringInternalized(isolate, "V8InjectedScriptHost#internalEntry"));
|
| }
|
|
|
| +v8::Local<v8::Private> V8InjectedScriptHost::internalLocationPrivate(v8::Isolate* isolate)
|
| +{
|
| + return v8::Private::ForApi(isolate, toV8StringInternalized(isolate, "V8InjectedScriptHost#internalLocation"));
|
| +}
|
| +
|
| void V8InjectedScriptHost::internalConstructorNameCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (info.Length() < 1 || !info[0]->IsObject())
|
| @@ -137,6 +142,10 @@ void V8InjectedScriptHost::subtypeCallback(const v8::FunctionCallbackInfo<v8::Va
|
| info.GetReturnValue().Set(toV8StringInternalized(isolate, "internal#entry"));
|
| return;
|
| }
|
| + if (obj->HasPrivate(isolate->GetCurrentContext(), internalLocationPrivate(isolate)).FromMaybe(false)) {
|
| + info.GetReturnValue().Set(toV8StringInternalized(isolate, "internal#location"));
|
| + return;
|
| + }
|
| }
|
| String16 subtype = unwrapDebugger(info)->client()->valueSubtype(value);
|
| if (!subtype.isEmpty()) {
|
|
|