Print Facets/Actors with toString instead of JSON
This commit is contained in:
parent
7f362ad99f
commit
71fed1eb48
|
@ -359,7 +359,7 @@ Actor.prototype.adhocAssert = function (a) {
|
|||
|
||||
Actor.prototype.toString = function () {
|
||||
let s = 'Actor(' + this.id;
|
||||
if (this.name !== void 0) s = s + ',' + JSON.stringify(this.name);
|
||||
if (this.name !== void 0) s = s + ',' + this.name.toString();
|
||||
return s + ')';
|
||||
};
|
||||
|
||||
|
@ -568,7 +568,7 @@ Facet.prototype.enqueueScriptAction = function (action) {
|
|||
|
||||
Facet.prototype.toString = function () {
|
||||
let s = 'Facet(' + this.actor.id;
|
||||
if (this.actor.name !== void 0) s = s + ',' + JSON.stringify(this.actor.name);
|
||||
if (this.actor.name !== void 0) s = s + ',' + this.actor.name.toString();
|
||||
s = s + ',' + this.id;
|
||||
let f = this.parent;
|
||||
while (f != null) {
|
||||
|
|
Loading…
Reference in New Issue