(r, isNormal)
| 453 | }; |
| 454 | |
| 455 | var debugObject = function (r, isNormal) { |
| 456 | var stringres = ""; |
| 457 | try { |
| 458 | stringres += "* " + (typeof r) + "\n"; |
| 459 | if (typeof r != "object") { |
| 460 | stringres += "~> " + r + "\n"; |
| 461 | } else { |
| 462 | var props; |
| 463 | if (isNormal) { |
| 464 | props = Object.keys(r); |
| 465 | } else { |
| 466 | props = r.getOwnPropertyNames(); |
| 467 | } |
| 468 | for (k in props) { |
| 469 | var desc = r.getOwnPropertyDescriptor(props[k]); |
| 470 | stringres += "~> " + props[k] + " = "; |
| 471 | if (desc.value) { |
| 472 | stringres += "" + desc.value; |
| 473 | } else if (desc.get) { |
| 474 | stringres += "" + desc.get(); |
| 475 | } else { |
| 476 | stringres += "undefined (no value or getter)"; |
| 477 | } |
| 478 | stringres += "\n"; |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | return stringres; |
| 483 | } catch (e) { |
| 484 | return ("Exception when accessing object properties = " + e); |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | dbg.breakLine = 0; |
| 489 |
no test coverage detected