mol_conform 0.0.162 → 0.0.163

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
@@ -538,6 +538,8 @@ var $;
538
538
  "use strict";
539
539
  var $;
540
540
  (function ($) {
541
+ if (!Symbol.dispose)
542
+ Symbol.dispose = Symbol('Symbol.dispose');
541
543
  class $mol_object2 {
542
544
  static $ = $;
543
545
  [Symbol.toStringTag];
@@ -570,6 +572,9 @@ var $;
570
572
  }
571
573
  destructor() { }
572
574
  static destructor() { }
575
+ [Symbol.dispose]() {
576
+ this.destructor();
577
+ }
573
578
  toString() {
574
579
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
575
580
  }