Index: third_party/protobuf/js/debug.js |
diff --git a/third_party/protobuf/js/debug.js b/third_party/protobuf/js/debug.js |
index 46b24853150af52ee70024f18beeb0680398fcf0..3701a0957ea05863dee4f547545cc9da9b8b529c 100644 |
--- a/third_party/protobuf/js/debug.js |
+++ b/third_party/protobuf/js/debug.js |
@@ -94,9 +94,8 @@ jspb.debug.dump_ = function(thing) { |
var match = /^get([A-Z]\w*)/.exec(name); |
if (match && name != 'getExtension' && |
name != 'getJsPbMessageId') { |
- var has = 'has' + match[1]; |
- if (!thing[has] || thing[has]()) { |
- var val = thing[name](); |
+ var val = thing[name](); |
+ if (val != null) { |
object[jspb.debug.formatFieldName_(match[1])] = jspb.debug.dump_(val); |
} |
} |