mol_key 0.0.1457 → 0.0.1459
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 +5 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -853,6 +853,8 @@ var $;
|
|
|
853
853
|
"use strict";
|
|
854
854
|
var $;
|
|
855
855
|
(function ($) {
|
|
856
|
+
if (!Symbol.dispose)
|
|
857
|
+
Symbol.dispose = Symbol('Symbol.dispose');
|
|
856
858
|
class $mol_object2 {
|
|
857
859
|
static $ = $;
|
|
858
860
|
[Symbol.toStringTag];
|
|
@@ -885,6 +887,9 @@ var $;
|
|
|
885
887
|
}
|
|
886
888
|
destructor() { }
|
|
887
889
|
static destructor() { }
|
|
890
|
+
[Symbol.dispose]() {
|
|
891
|
+
this.destructor();
|
|
892
|
+
}
|
|
888
893
|
toString() {
|
|
889
894
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
890
895
|
}
|