| 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 782e5bbab014739c75726871ec7dc193b38f4843..3d56598aa6cb249aedaac4fcf88659578edbbade 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
|
| @@ -134,9 +134,9 @@ void V8InjectedScriptHost::subtypeCallback(const v8::FunctionCallbackInfo<v8::Va
|
| info.GetReturnValue().Set(toV8StringInternalized(isolate, "promise"));
|
| return;
|
| }
|
| - String16 subtype = unwrapInspector(info)->client()->valueSubtype(value);
|
| - if (!subtype.isEmpty()) {
|
| - info.GetReturnValue().Set(toV8String(isolate, subtype));
|
| + std::unique_ptr<StringBuffer> subtype = unwrapInspector(info)->client()->valueSubtype(value);
|
| + if (subtype) {
|
| + info.GetReturnValue().Set(toV8String(isolate, subtype->string()));
|
| return;
|
| }
|
| }
|
|
|