mol_jsx_lib 0.0.741 → 0.0.742

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/web.mjs CHANGED
@@ -424,18 +424,16 @@ var $;
424
424
  return this.toString();
425
425
  }
426
426
  static toString() {
427
- if (Symbol.toStringTag in this)
428
- return this[Symbol.toStringTag];
429
- return this.name;
427
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
428
+ }
429
+ static toJSON() {
430
+ return this.toString();
430
431
  }
431
432
  destructor() { }
432
433
  static destructor() { }
433
434
  toString() {
434
435
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
435
436
  }
436
- static toJSON() {
437
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
438
- }
439
437
  toJSON() {
440
438
  return this.toString();
441
439
  }