fix debug.dump

pull/1447/head
Nikolai Vavilov 9 years ago
parent e4b129f304
commit 73e0b49272
  1. 6
      js/debug.js

@ -94,8 +94,10 @@ jspb.debug.dump_ = function(thing) {
var match = /^get([A-Z]\w*)/.exec(name);
if (match && name != 'getExtension' &&
name != 'getJsPbMessageId') {
var val = thing[name]();
if (val != null) {
var has = 'has' + match[1];
if (!thing[has] || thing[has]())
{
var val = thing[name]();
object[jspb.debug.formatFieldName_(match[1])] = jspb.debug.dump_(val);
}
}

Loading…
Cancel
Save