mol_regexp 0.0.1734 → 0.0.1736

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
@@ -735,6 +735,8 @@ var $;
735
735
  "use strict";
736
736
  var $;
737
737
  (function ($) {
738
+ if (!Symbol.dispose)
739
+ Symbol.dispose = Symbol('Symbol.dispose');
738
740
  class $mol_object2 {
739
741
  static $ = $;
740
742
  [Symbol.toStringTag];
@@ -767,6 +769,9 @@ var $;
767
769
  }
768
770
  destructor() { }
769
771
  static destructor() { }
772
+ [Symbol.dispose]() {
773
+ this.destructor();
774
+ }
770
775
  toString() {
771
776
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
772
777
  }