mol_compare_deep 0.0.1473 → 0.0.1475

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
@@ -930,6 +930,8 @@ var $;
930
930
  "use strict";
931
931
  var $;
932
932
  (function ($) {
933
+ if (!Symbol.dispose)
934
+ Symbol.dispose = Symbol('Symbol.dispose');
933
935
  class $mol_object2 {
934
936
  static $ = $;
935
937
  [Symbol.toStringTag];
@@ -962,6 +964,9 @@ var $;
962
964
  }
963
965
  destructor() { }
964
966
  static destructor() { }
967
+ [Symbol.dispose]() {
968
+ this.destructor();
969
+ }
965
970
  toString() {
966
971
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
967
972
  }