mol_wire_lib 1.0.874 → 1.0.875

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.mjs CHANGED
@@ -553,18 +553,16 @@ var $;
553
553
  return this.toString();
554
554
  }
555
555
  static toString() {
556
- if (Symbol.toStringTag in this)
557
- return this[Symbol.toStringTag];
558
- return this.name;
556
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
557
+ }
558
+ static toJSON() {
559
+ return this.toString();
559
560
  }
560
561
  destructor() { }
561
562
  static destructor() { }
562
563
  toString() {
563
564
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
564
565
  }
565
- static toJSON() {
566
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
567
- }
568
566
  toJSON() {
569
567
  return this.toString();
570
568
  }
package/node.test.js CHANGED
@@ -545,18 +545,16 @@ var $;
545
545
  return this.toString();
546
546
  }
547
547
  static toString() {
548
- if (Symbol.toStringTag in this)
549
- return this[Symbol.toStringTag];
550
- return this.name;
548
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
549
+ }
550
+ static toJSON() {
551
+ return this.toString();
551
552
  }
552
553
  destructor() { }
553
554
  static destructor() { }
554
555
  toString() {
555
556
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
556
557
  }
557
- static toJSON() {
558
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
559
- }
560
558
  toJSON() {
561
559
  return this.toString();
562
560
  }