mol_time_all 1.1.844 → 1.1.846

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
@@ -1958,7 +1958,7 @@ var $;
1958
1958
  continue;
1959
1959
  if (!$mol_compare_deep(args[i], args[j]))
1960
1960
  continue;
1961
- $mol_fail(new Error(`args[${i}] = args[${j}] = ${args[i]}`));
1961
+ $mol_fail(new Error(`args[${i}] = args[${j}] = ${print(args[i])}`));
1962
1962
  }
1963
1963
  }
1964
1964
  }
@@ -2140,18 +2140,16 @@ var $;
2140
2140
  return this.toString();
2141
2141
  }
2142
2142
  static toString() {
2143
- if (Symbol.toStringTag in this)
2144
- return this[Symbol.toStringTag];
2145
- return this.name;
2143
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
2144
+ }
2145
+ static toJSON() {
2146
+ return this.toString();
2146
2147
  }
2147
2148
  destructor() { }
2148
2149
  static destructor() { }
2149
2150
  toString() {
2150
2151
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
2151
2152
  }
2152
- static toJSON() {
2153
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
2154
- }
2155
2153
  toJSON() {
2156
2154
  return this.toString();
2157
2155
  }