mol_jsx_lib 0.0.741 → 0.0.743

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
@@ -289,18 +289,16 @@ var $;
289
289
  return this.toString();
290
290
  }
291
291
  static toString() {
292
- if (Symbol.toStringTag in this)
293
- return this[Symbol.toStringTag];
294
- return this.name;
292
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
293
+ }
294
+ static toJSON() {
295
+ return this.toString();
295
296
  }
296
297
  destructor() { }
297
298
  static destructor() { }
298
299
  toString() {
299
300
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
300
301
  }
301
- static toJSON() {
302
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
303
- }
304
302
  toJSON() {
305
303
  return this.toString();
306
304
  }
package/node.test.js CHANGED
@@ -281,18 +281,16 @@ var $;
281
281
  return this.toString();
282
282
  }
283
283
  static toString() {
284
- if (Symbol.toStringTag in this)
285
- return this[Symbol.toStringTag];
286
- return this.name;
284
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
285
+ }
286
+ static toJSON() {
287
+ return this.toString();
287
288
  }
288
289
  destructor() { }
289
290
  static destructor() { }
290
291
  toString() {
291
292
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
292
293
  }
293
- static toJSON() {
294
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
295
- }
296
294
  toJSON() {
297
295
  return this.toString();
298
296
  }
@@ -2922,7 +2920,7 @@ var $;
2922
2920
  continue;
2923
2921
  if (!$mol_compare_deep(args[i], args[j]))
2924
2922
  continue;
2925
- $mol_fail(new Error(`args[${i}] = args[${j}] = ${args[i]}`));
2923
+ $mol_fail(new Error(`args[${i}] = args[${j}] = ${print(args[i])}`));
2926
2924
  }
2927
2925
  }
2928
2926
  }