Bug 1581418 - Include more properties when logging objects, r=jlast.

Differential Revision: https://phabricator.services.mozilla.com/D45961
This commit is contained in:
Brian Hackett
2019-09-16 22:48:15 +00:00
parent 4818e6d74c
commit 1c379ffddb
15 changed files with 566 additions and 337 deletions

View File

@@ -887,6 +887,12 @@ errorOnFlag(exports, "wantVerbose");
// where unsafeDereference will return an opaque security wrapper to the
// referent.
function callPropertyOnObject(object, name, ...args) {
// When replaying, the result of the call may already be known, which avoids
// having to communicate with the replaying process.
if (isReplaying && args.length == 0 && object.replayHasCallResult(name)) {
return object.replayCallResult(name);
}
// Find the property.
let descriptor;
let proto = object;