Index: third_party/WebKit/Source/bindings/core/dart/DartInjectedScript.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/dart/DartInjectedScript.cpp b/third_party/WebKit/Source/bindings/core/dart/DartInjectedScript.cpp |
index 9f8d0e0b0c3efe13c09e5c91d077d20afc422491..e7f753b4b27a14286f7119444ab4ea2e407d4f65 100644 |
--- a/third_party/WebKit/Source/bindings/core/dart/DartInjectedScript.cpp |
+++ b/third_party/WebKit/Source/bindings/core/dart/DartInjectedScript.cpp |
@@ -450,8 +450,6 @@ void DartInjectedScript::packageObjectResult(Dart_Handle dartHandle, const Strin |
{ |
ASSERT(Dart_IsInstance(dartHandle) || Dart_IsNull(dartHandle)); |
- *result = NULL; |
- |
// FIXMEDART: support returnByValue for Dart types that are expressible as JSON. |
bool wasThrownVal = false; |
Dart_Handle exception = 0; |
@@ -511,7 +509,7 @@ void DartInjectedScript::packageObjectResult(Dart_Handle dartHandle, const Strin |
isNode = true; |
} |
- const char* remoteType; |
+ const char* remoteType = nullptr; |
const char* remoteSubType = nullptr; |
switch (value->type()) { |
case protocol::Value::TypeBoolean: |
@@ -533,7 +531,6 @@ void DartInjectedScript::packageObjectResult(Dart_Handle dartHandle, const Strin |
case protocol::Value::TypeNull: |
default: |
remoteType = protocol::Runtime::RemoteObject::TypeEnum::Object; |
- remoteSubType = protocol::Runtime::RemoteObject::SubtypeEnum::Null; |
break; |
} |