mol_jsx_lib 0.0.691 → 0.0.692

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
@@ -158,7 +158,7 @@ var $;
158
158
  try {
159
159
  if (!having)
160
160
  return false;
161
- if (typeof having !== 'object')
161
+ if (typeof having !== 'object' && typeof having !== 'function')
162
162
  return false;
163
163
  if (having instanceof $mol_delegate)
164
164
  return false;
@@ -294,11 +294,12 @@ var $;
294
294
  return this.name;
295
295
  }
296
296
  destructor() { }
297
+ static destructor() { }
297
298
  toString() {
298
299
  return this[Symbol.toStringTag] || this.constructor.name + '()';
299
300
  }
300
301
  static toJSON() {
301
- return this.$.$mol_func_name(this);
302
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
302
303
  }
303
304
  toJSON() {
304
305
  return this.toString();
package/node.test.js CHANGED
@@ -150,7 +150,7 @@ var $;
150
150
  try {
151
151
  if (!having)
152
152
  return false;
153
- if (typeof having !== 'object')
153
+ if (typeof having !== 'object' && typeof having !== 'function')
154
154
  return false;
155
155
  if (having instanceof $mol_delegate)
156
156
  return false;
@@ -286,11 +286,12 @@ var $;
286
286
  return this.name;
287
287
  }
288
288
  destructor() { }
289
+ static destructor() { }
289
290
  toString() {
290
291
  return this[Symbol.toStringTag] || this.constructor.name + '()';
291
292
  }
292
293
  static toJSON() {
293
- return this.$.$mol_func_name(this);
294
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
294
295
  }
295
296
  toJSON() {
296
297
  return this.toString();