mol_mutable 0.0.394 → 0.0.396

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.test.js CHANGED
@@ -1267,7 +1267,7 @@ var $;
1267
1267
  continue;
1268
1268
  if (!$mol_compare_deep(args[i], args[j]))
1269
1269
  continue;
1270
- $mol_fail(new Error(`args[${i}] = args[${j}] = ${args[i]}`));
1270
+ $mol_fail(new Error(`args[${i}] = args[${j}] = ${print(args[i])}`));
1271
1271
  }
1272
1272
  }
1273
1273
  }
@@ -1443,18 +1443,16 @@ var $;
1443
1443
  return this.toString();
1444
1444
  }
1445
1445
  static toString() {
1446
- if (Symbol.toStringTag in this)
1447
- return this[Symbol.toStringTag];
1448
- return this.name;
1446
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
1447
+ }
1448
+ static toJSON() {
1449
+ return this.toString();
1449
1450
  }
1450
1451
  destructor() { }
1451
1452
  static destructor() { }
1452
1453
  toString() {
1453
1454
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
1454
1455
  }
1455
- static toJSON() {
1456
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
1457
- }
1458
1456
  toJSON() {
1459
1457
  return this.toString();
1460
1458
  }